Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9323

Improve the syntax of the OO api access

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.7, 4.0.7
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      None

      Description

      More magic for the api:

      so you call the api (local or remote)
      $api->Contact->GetSingle(42);

      then you can access the data
      echo $api->Contact->first_name
      or $api->Contact->any_field;

      with two special ones: $api->values and $api->result;

      I'm keeping it in QA and going to write the tests in the code sprint

        Attachments

          Activity

            People

            • Assignee:
              erikhommel Erik Hommel
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: