Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.4.6, 4.0.6
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Here is a new V3 api for customValue. So far it handles get and create (update). Delete might be a little weird to implement, since we set individual values, but would be deleting an entire row, but let me know if you have ideas about how to go about it (and why).

      Also, I ran into the issue of multi-valued items (i.e. a string separated by VALUE_SEPARATOR), and was wondering about the "standard" way to handle it. My approach was just to explode/implode it to and from arrays, but other apis seem to be doing it differently. Would be good to agree on a standard approach to this.

      Haven't written a test yet, hope to do it at the sprint next week.

        Attachments

        1. CustomValue.php
          5 kB
          Coleman Watts
        2. CustomValue.php
          5 kB
          Coleman Watts
        3. patch.txt
          1 kB
          Joe Murray
        4. utils.patch
          1 kB
          Coleman Watts

          Activity

            People

            • Assignee:
              joemurray Joe Murray
              Reporter:
              colemanw Coleman Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: