From 85651a607a837a25a272516a011f36af5f12650d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 17 Jan 2022 11:27:35 +1300 Subject: [PATCH] Run 'full drupal strictness' standard over api/v3/examples I just removed all the rules we weren't enforcing cos too-hard from our drupal code standard & ran phpcbf over the directory. I figure we aren't really updating these so getting them to what strict phpcs will tolerate could save time when we next tighten the noose and if someone ever regenerates them they can deal with re-running it or improving the tpl --- .../Activity/ContactRefCustomField.ex.php | 47 ++++++++++-------- .../Activity/ContactRefCustomFieldGet.ex.php | 49 ++++++++++--------- api/v3/examples/Activity/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Activity/DateTimeHigh.ex.php | 47 ++++++++++-------- api/v3/examples/Activity/DateTimeLow.ex.php | 47 ++++++++++-------- api/v3/examples/Activity/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Activity/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Activity/GetFields.ex.php | 47 ++++++++++-------- .../Activity/GetTargetandAssignee.ex.php | 47 ++++++++++-------- .../Activity/GetTargetandAssigneeName.ex.php | 47 ++++++++++-------- .../Activity/ReturnAssigneeContact.ex.php | 47 ++++++++++-------- api/v3/examples/ActivityContact/Create.ex.php | 47 ++++++++++-------- api/v3/examples/ActivityContact/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/ActivityType/Create.ex.php | 47 ++++++++++-------- api/v3/examples/ActivityType/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Address/AddressLike.ex.php | 47 ++++++++++-------- api/v3/examples/Address/AddressParse.ex.php | 47 ++++++++++-------- api/v3/examples/Address/AddressSort.ex.php | 47 ++++++++++-------- api/v3/examples/Address/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Address/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Address/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Address/GetOptions.ex.php | 47 ++++++++++-------- api/v3/examples/Batch/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Batch/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Batch/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Batch/Update.ex.php | 9 +++- api/v3/examples/Campaign/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Campaign/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Campaign/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Case/Create.ex.php | 47 ++++++++++-------- api/v3/examples/CaseContact/Create.ex.php | 47 ++++++++++-------- api/v3/examples/CaseContact/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Constant/Get.ex.php | 47 ++++++++++-------- .../examples/Contact/APIChainedArray.ex.php | 47 ++++++++++-------- .../Contact/APIChainedArrayFormats.ex.php | 47 ++++++++++-------- .../APIChainedArrayMultipleCustom.ex.php | 47 ++++++++++-------- ...ainedArrayValuesFromSiblingFunction.ex.php | 47 ++++++++++-------- .../examples/Contact/ChainTwoWebsites.ex.php | 47 ++++++++++-------- .../Contact/ChainTwoWebsitesSyntax2.ex.php | 47 ++++++++++-------- .../ContactIDOfLoggedInUserContactAPI.ex.php | 49 ++++++++++--------- api/v3/examples/Contact/Create.ex.php | 47 ++++++++++-------- .../Contact/CreateParticipantPayment.ex.php | 47 ++++++++++-------- api/v3/examples/Contact/CustomFieldGet.ex.php | 47 ++++++++++-------- ...CustomFieldGetReturnSyntaxVariation.ex.php | 47 ++++++++++-------- api/v3/examples/Contact/Delete.ex.php | 47 ++++++++++-------- .../Contact/FormatIsSuccess_Fail.ex.php | 49 ++++++++++--------- .../Contact/FormatIsSuccess_True.ex.php | 49 ++++++++++--------- api/v3/examples/Contact/FormatOnlyID.ex.php | 49 ++++++++++--------- .../examples/Contact/FormatSingleValue.ex.php | 49 ++++++++++--------- api/v3/examples/Contact/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Contact/GetActions.ex.php | 47 ++++++++++-------- .../examples/Contact/GetCountContact.ex.php | 47 ++++++++++-------- .../examples/Contact/GetFieldsOptions.ex.php | 47 ++++++++++-------- api/v3/examples/Contact/GetMergedfrom.ex.php | 47 ++++++++++-------- api/v3/examples/Contact/GetMergedto.ex.php | 47 ++++++++++-------- api/v3/examples/Contact/GetOptions.ex.php | 47 ++++++++++-------- .../examples/Contact/GetSingleContact.ex.php | 49 ++++++++++--------- api/v3/examples/Contact/GetUnique.ex.php | 47 ++++++++++-------- .../Contact/GroupFilterUsingContactAPI.ex.php | 47 ++++++++++-------- .../Contact/NestedReplaceEmail.ex.php | 47 ++++++++++-------- ...ontributionCreateWithHonoreeContact.ex.php | 47 ++++++++++-------- .../ContributionCreateWithNote.ex.php | 47 ++++++++++-------- .../ContributionCreateWithSoftCredit.ex.php | 47 ++++++++++-------- ...ibutionCreateWithSoftCreditDefaults.ex.php | 47 ++++++++++-------- api/v3/examples/Contribution/Create.ex.php | 47 ++++++++++-------- .../CreateWithNestedLineItems.ex.php | 47 ++++++++++-------- api/v3/examples/Contribution/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Contribution/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Contribution/GetUnique.ex.php | 47 ++++++++++-------- .../examples/ContributionPage/Create.ex.php | 47 ++++++++++-------- .../examples/ContributionPage/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/ContributionPage/Get.ex.php | 47 ++++++++++-------- .../examples/ContributionPage/Submit.ex.php | 49 ++++++++++--------- .../examples/ContributionRecur/Create.ex.php | 47 ++++++++++-------- .../examples/ContributionRecur/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/ContributionRecur/Get.ex.php | 47 ++++++++++-------- .../examples/ContributionSoft/Create.ex.php | 47 ++++++++++-------- .../examples/ContributionSoft/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/ContributionSoft/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Country/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Country/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Country/Get.ex.php | 47 ++++++++++-------- api/v3/examples/CustomField/Create.ex.php | 47 ++++++++++-------- api/v3/examples/CustomField/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/CustomGroup/Create.ex.php | 47 ++++++++++-------- api/v3/examples/CustomGroup/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/CustomGroup/Get.ex.php | 47 ++++++++++-------- api/v3/examples/CustomValue/Create.ex.php | 47 ++++++++++-------- .../CustomValue/FormatFieldName.ex.php | 49 ++++++++++--------- api/v3/examples/CustomValue/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Domain/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Domain/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Email/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Email/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Email/Replace.ex.php | 47 ++++++++++-------- api/v3/examples/EntityBatch/Create.ex.php | 47 ++++++++++-------- api/v3/examples/EntityBatch/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/EntityBatch/Get.ex.php | 47 ++++++++++-------- api/v3/examples/EntityTag/Create.ex.php | 47 ++++++++++-------- api/v3/examples/EntityTag/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/EntityTag/Get.ex.php | 47 ++++++++++-------- .../Event/ContactRefCustomField.ex.php | 47 ++++++++++-------- api/v3/examples/Event/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Event/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Event/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Event/IsCurrentOption.ex.php | 47 ++++++++++-------- api/v3/examples/Event/IsFullOption.ex.php | 47 ++++++++++-------- api/v3/examples/Grant/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Grant/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Grant/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Group/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Group/GetFields.ex.php | 47 ++++++++++-------- api/v3/examples/GroupContact/Create.ex.php | 47 ++++++++++-------- api/v3/examples/GroupContact/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/GroupContact/Get.ex.php | 47 ++++++++++-------- .../GroupContact/GetWithGroupID.ex.php | 47 ++++++++++-------- api/v3/examples/GroupNesting/Create.ex.php | 47 ++++++++++-------- api/v3/examples/GroupNesting/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/GroupNesting/Get.ex.php | 47 ++++++++++-------- .../examples/GroupOrganization/Create.ex.php | 47 ++++++++++-------- .../examples/GroupOrganization/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/GroupOrganization/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Im/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Im/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Im/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Job/Clone.ex.php | 47 ++++++++++-------- api/v3/examples/Job/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Job/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/LineItem/Create.ex.php | 47 ++++++++++-------- api/v3/examples/LineItem/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/LineItem/Get.ex.php | 47 ++++++++++-------- api/v3/examples/LocBlock/Create.ex.php | 49 ++++++++++--------- .../examples/LocBlock/CreateEntities.ex.php | 47 ++++++++++-------- api/v3/examples/LocBlock/Get.ex.php | 49 ++++++++++--------- api/v3/examples/Logging/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Logging/Revert.ex.php | 47 ++++++++++-------- .../MailSettings/ChainedGetDelete.ex.php | 47 ++++++++++-------- api/v3/examples/MailSettings/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MailSettings/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/MailSettings/Get.ex.php | 47 ++++++++++-------- .../examples/MailSettings/GetOptions.ex.php | 47 ++++++++++-------- api/v3/examples/Mailing/Clone.ex.php | 47 ++++++++++-------- api/v3/examples/Mailing/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Mailing/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Mailing/GetTokens.ex.php | 47 ++++++++++-------- api/v3/examples/Mailing/Submit.ex.php | 47 ++++++++++-------- api/v3/examples/MailingAB/Create.ex.php | 47 ++++++++++-------- .../MailingEventSubscribe/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MailingGroup/Subscribe.ex.php | 10 ++-- api/v3/examples/Mapping/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Mapping/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Mapping/Get.ex.php | 47 ++++++++++-------- api/v3/examples/MappingField/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MappingField/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/MappingField/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Membership/Create.ex.php | 47 ++++++++++-------- .../Membership/CreateWithCustomData.ex.php | 47 ++++++++++-------- api/v3/examples/Membership/Delete.ex.php | 47 ++++++++++-------- .../Membership/FilterIsCurrent.ex.php | 47 ++++++++++-------- api/v3/examples/Membership/Get.ex.php | 47 ++++++++++-------- .../Membership/SearchWithCustomData.ex.php | 47 ++++++++++-------- .../Membership/UpdateCustomData.ex.php | 47 ++++++++++-------- .../examples/MembershipPayment/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MembershipPayment/Get.ex.php | 47 ++++++++++-------- .../examples/MembershipStatus/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MembershipStatus/Get.ex.php | 47 ++++++++++-------- api/v3/examples/MembershipType/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MembershipType/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/MembershipType/Get.ex.php | 47 ++++++++++-------- api/v3/examples/MessageTemplate/Create.ex.php | 47 ++++++++++-------- api/v3/examples/MessageTemplate/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/MessageTemplate/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Note/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Note/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Note/Get.ex.php | 47 ++++++++++-------- api/v3/examples/OpenID/Create.ex.php | 47 ++++++++++-------- api/v3/examples/OpenID/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/OpenID/Get.ex.php | 47 ++++++++++-------- api/v3/examples/OptionGroup/Create.ex.php | 47 ++++++++++-------- api/v3/examples/OptionGroup/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/OptionGroup/Get.ex.php | 47 ++++++++++-------- api/v3/examples/OptionValue/Get.ex.php | 47 ++++++++++-------- api/v3/examples/OptionValue/SortOption.ex.php | 47 ++++++++++-------- api/v3/examples/Order/Cancel.ex.php | 47 ++++++++++-------- api/v3/examples/Order/Create.ex.php | 47 ++++++++++-------- .../Order/CreateOrderParticipant.ex.php | 49 ++++++++++--------- api/v3/examples/Order/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Order/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Participant/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Participant/Get.ex.php | 47 ++++++++++-------- .../examples/Participant/NestedDelete.ex.php | 47 ++++++++++-------- .../Participant/NestedEventGet.ex.php | 47 ++++++++++-------- .../examples/ParticipantPayment/Create.ex.php | 47 ++++++++++-------- .../examples/ParticipantPayment/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/ParticipantPayment/Get.ex.php | 47 ++++++++++-------- .../ParticipantStatusType/Create.ex.php | 47 ++++++++++-------- .../ParticipantStatusType/Delete.ex.php | 47 ++++++++++-------- .../examples/ParticipantStatusType/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Payment/Cancel.ex.php | 47 ++++++++++-------- api/v3/examples/Payment/Create.ex.php | 47 ++++++++++-------- .../Payment/CreatePaymentWithLineItems.ex.php | 49 ++++++++++--------- api/v3/examples/Payment/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Payment/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Payment/UpdatePayment.ex.php | 49 ++++++++++--------- .../examples/PaymentProcessor/Create.ex.php | 47 ++++++++++-------- .../examples/PaymentProcessor/Delete.ex.php | 47 ++++++++++-------- .../PaymentProcessorType/Create.ex.php | 47 ++++++++++-------- .../PaymentProcessorType/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/PaymentToken/Create.ex.php | 47 ++++++++++-------- api/v3/examples/PaymentToken/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/PaymentToken/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Pcp/ChainedGetDelete.ex.php | 47 ++++++++++-------- api/v3/examples/Pcp/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Pcp/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Pcp/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Phone/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Phone/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Phone/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Phone/GetOptions.ex.php | 47 ++++++++++-------- api/v3/examples/Pledge/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Pledge/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Pledge/Get.ex.php | 47 ++++++++++-------- .../examples/Pledge/GetFilterHighDate.ex.php | 49 ++++++++++--------- api/v3/examples/PledgePayment/Create.ex.php | 47 ++++++++++-------- api/v3/examples/PledgePayment/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/PledgePayment/Get.ex.php | 47 ++++++++++-------- api/v3/examples/PledgePayment/Update.ex.php | 47 ++++++++++-------- api/v3/examples/PriceField/Create.ex.php | 47 ++++++++++-------- api/v3/examples/PriceField/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/PriceField/Get.ex.php | 47 ++++++++++-------- api/v3/examples/PriceFieldValue/Create.ex.php | 47 ++++++++++-------- api/v3/examples/PriceFieldValue/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/PriceFieldValue/Get.ex.php | 47 ++++++++++-------- api/v3/examples/PriceSet/Create.ex.php | 47 ++++++++++-------- api/v3/examples/PriceSet/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/PriceSet/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Profile/Apply.ex.php | 47 ++++++++++-------- api/v3/examples/Profile/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Profile/GetFields.ex.php | 49 ++++++++++--------- api/v3/examples/Profile/Submit.ex.php | 47 ++++++++++-------- .../BetweenRelationshipType.ex.php | 47 ++++++++++-------- api/v3/examples/Relationship/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Relationship/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Relationship/Get.ex.php | 47 ++++++++++-------- .../Relationship/INRelationshipType.ex.php | 47 ++++++++++-------- .../NotBetweenRelationshipType.ex.php | 47 ++++++++++-------- .../Relationship/NotInRelationshipType.ex.php | 47 ++++++++++-------- .../Relationship/filterIsCurrent.ex.php | 47 ++++++++++-------- .../examples/RelationshipType/Create.ex.php | 47 ++++++++++-------- .../examples/RelationshipType/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/ReportTemplate/Getrows.ex.php | 47 ++++++++++-------- .../ReportTemplate/Getstatistics.ex.php | 47 ++++++++++-------- api/v3/examples/SavedSearch/Create.ex.php | 47 ++++++++++-------- api/v3/examples/SavedSearch/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/SavedSearch/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/Create.ex.php | 47 ++++++++++-------- .../examples/Setting/CreateAllDomains.ex.php | 47 ++++++++++-------- .../Setting/CreateSettingCurrentDomain.ex.php | 47 ++++++++++-------- .../Setting/CreateSpecifiedDomains.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/GetAllDomains.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/GetDefaults.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/GetFields.ex.php | 49 ++++++++++--------- .../Setting/GetSettingCurrentDomain.ex.php | 47 ++++++++++-------- .../Setting/GetSpecifiedDomains.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/GetValue.ex.php | 47 ++++++++++-------- api/v3/examples/Setting/Revert.ex.php | 47 ++++++++++-------- api/v3/examples/StateProvince/Create.ex.php | 47 ++++++++++-------- api/v3/examples/StateProvince/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/StateProvince/Get.ex.php | 47 ++++++++++-------- .../examples/StatusPreference/Create.ex.php | 47 ++++++++++-------- .../examples/StatusPreference/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/StatusPreference/Get.ex.php | 47 ++++++++++-------- .../examples/Survey/ChainedGetDelete.ex.php | 47 ++++++++++-------- api/v3/examples/Survey/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Survey/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Survey/Get.ex.php | 47 ++++++++++-------- api/v3/examples/SurveyRespondant/Get.ex.php | 47 ++++++++++-------- api/v3/examples/System/Flush.ex.php | 49 ++++++++++--------- api/v3/examples/Tag/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Tag/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Tag/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Tag/GetFields.ex.php | 47 ++++++++++-------- api/v3/examples/Tag/GetList.ex.php | 47 ++++++++++-------- api/v3/examples/Tag/GetReturnArray.ex.php | 47 ++++++++++-------- .../TaxContributionPage/Create.ex.php | 9 +++- .../CreateWithNestedLineItems.ex.php | 9 +++- .../TaxContributionPage/Delete.ex.php | 9 +++- api/v3/examples/UFField/Create.ex.php | 47 ++++++++++-------- api/v3/examples/UFField/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/UFField/Get.ex.php | 47 ++++++++++-------- api/v3/examples/UFField/Replace.ex.php | 47 ++++++++++-------- api/v3/examples/UFGroup/Create.ex.php | 47 ++++++++++-------- api/v3/examples/UFGroup/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/UFGroup/Get.ex.php | 47 ++++++++++-------- api/v3/examples/UFJoin/Create.ex.php | 47 ++++++++++-------- api/v3/examples/UFJoin/Get.ex.php | 47 ++++++++++-------- api/v3/examples/UFMatch/Get.ex.php | 47 ++++++++++-------- api/v3/examples/User/Get.ex.php | 47 ++++++++++-------- api/v3/examples/User/GetFields.ex.php | 47 ++++++++++-------- api/v3/examples/Website/Create.ex.php | 47 ++++++++++-------- api/v3/examples/Website/Delete.ex.php | 47 ++++++++++-------- api/v3/examples/Website/Get.ex.php | 47 ++++++++++-------- api/v3/examples/Website/GetFields.ex.php | 47 ++++++++++-------- .../examples/Website/GetWithMetadata.ex.php | 49 ++++++++++--------- 305 files changed, 7854 insertions(+), 6330 deletions(-) diff --git a/api/v3/examples/Activity/ContactRefCustomField.ex.php b/api/v3/examples/Activity/ContactRefCustomField.ex.php index 7c70fcb0b6..9a9b1cf59e 100644 --- a/api/v3/examples/Activity/ContactRefCustomField.ex.php +++ b/api/v3/examples/Activity/ContactRefCustomField.ex.php @@ -1,4 +1,9 @@ '1', ]; - try{ + try { $result = civicrm_api3('Activity', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -88,23 +93,23 @@ function activity_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testActivityCreateCustomContactRefField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityCreateCustomContactRefField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/ContactRefCustomFieldGet.ex.php b/api/v3/examples/Activity/ContactRefCustomFieldGet.ex.php index 1b1ee194a3..646de41cba 100644 --- a/api/v3/examples/Activity/ContactRefCustomFieldGet.ex.php +++ b/api/v3/examples/Activity/ContactRefCustomFieldGet.ex.php @@ -1,8 +1,13 @@ 1, ]; - try{ + try { $result = civicrm_api3('Activity', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -76,23 +81,23 @@ function activity_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testActivityCreateCustomContactRefField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityCreateCustomContactRefField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/Create.ex.php b/api/v3/examples/Activity/Create.ex.php index 3d48bdddeb..d0afa1ddff 100644 --- a/api/v3/examples/Activity/Create.ex.php +++ b/api/v3/examples/Activity/Create.ex.php @@ -1,4 +1,9 @@ 'custom string', ]; - try{ + try { $result = civicrm_api3('Activity', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -86,23 +91,23 @@ function activity_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testActivityCreateCustomSubType" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityCreateCustomSubType" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/DateTimeHigh.ex.php b/api/v3/examples/Activity/DateTimeHigh.ex.php index 7f8009b078..510ccb804e 100644 --- a/api/v3/examples/Activity/DateTimeHigh.ex.php +++ b/api/v3/examples/Activity/DateTimeHigh.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Activity', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function activity_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetFilterMaxDate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFilterMaxDate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/DateTimeLow.ex.php b/api/v3/examples/Activity/DateTimeLow.ex.php index c4ccee6a68..6e08e95113 100644 --- a/api/v3/examples/Activity/DateTimeLow.ex.php +++ b/api/v3/examples/Activity/DateTimeLow.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Activity', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -70,23 +75,23 @@ function activity_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetFilterMaxDate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFilterMaxDate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/Delete.ex.php b/api/v3/examples/Activity/Delete.ex.php index 131e8ad31c..25eaaa610b 100644 --- a/api/v3/examples/Activity/Delete.ex.php +++ b/api/v3/examples/Activity/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Activity', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function activity_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteActivity" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteActivity" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/Get.ex.php b/api/v3/examples/Activity/Get.ex.php index 014e703a3d..91ea2ed022 100644 --- a/api/v3/examples/Activity/Get.ex.php +++ b/api/v3/examples/Activity/Get.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityCaseTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Activity/GetFields.ex.php b/api/v3/examples/Activity/GetFields.ex.php index 6155aa26ed..30c0986181 100644 --- a/api/v3/examples/Activity/GetFields.ex.php +++ b/api/v3/examples/Activity/GetFields.ex.php @@ -1,4 +1,9 @@ 'create', ]; - try{ + try { $result = civicrm_api3('Activity', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -504,23 +509,23 @@ function activity_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetFields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/GetTargetandAssignee.ex.php b/api/v3/examples/Activity/GetTargetandAssignee.ex.php index 1cdffbae4b..b30a8516da 100644 --- a/api/v3/examples/Activity/GetTargetandAssignee.ex.php +++ b/api/v3/examples/Activity/GetTargetandAssignee.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Activity', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -89,23 +94,23 @@ function activity_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testActivityReturnTargetAssignee" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityReturnTargetAssignee" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Activity/GetTargetandAssigneeName.ex.php b/api/v3/examples/Activity/GetTargetandAssigneeName.ex.php index 7eaa7b8f9b..385559eb5a 100644 --- a/api/v3/examples/Activity/GetTargetandAssigneeName.ex.php +++ b/api/v3/examples/Activity/GetTargetandAssigneeName.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('ActivityContact', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function activity_contact_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateActivityContact" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateActivityContact" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ActivityContact/Delete.ex.php b/api/v3/examples/ActivityContact/Delete.ex.php index 34a0727e07..0136f30b7c 100644 --- a/api/v3/examples/ActivityContact/Delete.ex.php +++ b/api/v3/examples/ActivityContact/Delete.ex.php @@ -1,4 +1,9 @@ 11, ]; - try{ + try { $result = civicrm_api3('ActivityContact', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function activity_contact_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteActivityContact" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteActivityContact" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ActivityType/Create.ex.php b/api/v3/examples/ActivityType/Create.ex.php index 32298d8739..390b85e996 100644 --- a/api/v3/examples/ActivityType/Create.ex.php +++ b/api/v3/examples/ActivityType/Create.ex.php @@ -1,4 +1,9 @@ 0, ]; - try{ + try { $result = civicrm_api3('ActivityType', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -79,23 +84,23 @@ function activity_type_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testActivityTypeCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityTypeCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ActivityType/Get.ex.php b/api/v3/examples/ActivityType/Get.ex.php index 0c81f5052c..eb3c704361 100644 --- a/api/v3/examples/ActivityType/Get.ex.php +++ b/api/v3/examples/ActivityType/Get.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityTypeGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/AddressLike.ex.php b/api/v3/examples/Address/AddressLike.ex.php index 6f36acfeb3..4f848d3792 100644 --- a/api/v3/examples/Address/AddressLike.ex.php +++ b/api/v3/examples/Address/AddressLike.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Address', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -69,23 +74,23 @@ function address_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetAddressLikeSuccess" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetAddressLikeSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/AddressParse.ex.php b/api/v3/examples/Address/AddressParse.ex.php index 264e7684bf..283ba200bf 100644 --- a/api/v3/examples/Address/AddressParse.ex.php +++ b/api/v3/examples/Address/AddressParse.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('Address', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -68,23 +73,23 @@ function address_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateAddressParsing" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateAddressParsing" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/AddressSort.ex.php b/api/v3/examples/Address/AddressSort.ex.php index 7c4937ba12..8efa40edd8 100644 --- a/api/v3/examples/Address/AddressSort.ex.php +++ b/api/v3/examples/Address/AddressSort.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Address', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -83,23 +88,23 @@ function address_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetAddressSort" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetAddressSort" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/Create.ex.php b/api/v3/examples/Address/Create.ex.php index 870a0208e4..a07644ec4b 100644 --- a/api/v3/examples/Address/Create.ex.php +++ b/api/v3/examples/Address/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Address', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function address_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateAddressDefaultLocation" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateAddressDefaultLocation" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/Delete.ex.php b/api/v3/examples/Address/Delete.ex.php index ba8524486c..5a6325e8f0 100644 --- a/api/v3/examples/Address/Delete.ex.php +++ b/api/v3/examples/Address/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Address', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function address_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteAddress" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteAddress" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/Get.ex.php b/api/v3/examples/Address/Get.ex.php index 92f17e96cb..99af38f883 100644 --- a/api/v3/examples/Address/Get.ex.php +++ b/api/v3/examples/Address/Get.ex.php @@ -1,4 +1,9 @@ 'Ambachtstraat', ]; - try{ + try { $result = civicrm_api3('Address', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function address_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetAddress" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetAddress" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/AddressTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Address/GetOptions.ex.php b/api/v3/examples/Address/GetOptions.ex.php index db58c9f81b..ae7090d658 100644 --- a/api/v3/examples/Address/GetOptions.ex.php +++ b/api/v3/examples/Address/GetOptions.ex.php @@ -1,4 +1,9 @@ 'location_type_id', ]; - try{ + try { $result = civicrm_api3('Address', 'getoptions', $params); } catch (CiviCRM_API3_Exception $e) { @@ -54,23 +59,23 @@ function address_getoptions_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testLocationTypeGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testLocationTypeGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Batch/Create.ex.php b/api/v3/examples/Batch/Create.ex.php index 978a965ab8..2871983914 100644 --- a/api/v3/examples/Batch/Create.ex.php +++ b/api/v3/examples/Batch/Create.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Batch', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -74,23 +79,23 @@ function batch_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUpdate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUpdate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Batch/Delete.ex.php b/api/v3/examples/Batch/Delete.ex.php index 0180f59c03..6e2f03dc88 100644 --- a/api/v3/examples/Batch/Delete.ex.php +++ b/api/v3/examples/Batch/Delete.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('Batch', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function batch_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testBatchDeleteCorrectSyntax" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testBatchDeleteCorrectSyntax" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Batch/Get.ex.php b/api/v3/examples/Batch/Get.ex.php index 84e73fed73..583d37d163 100644 --- a/api/v3/examples/Batch/Get.ex.php +++ b/api/v3/examples/Batch/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Batch', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -57,23 +62,23 @@ function batch_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Batch/Update.ex.php b/api/v3/examples/Batch/Update.ex.php index 5eed12da7e..0ee073de8d 100644 --- a/api/v3/examples/Batch/Update.ex.php +++ b/api/v3/examples/Batch/Update.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('batch', 'update', $params); } catch (CiviCRM_API3_Exception $e) { @@ -77,7 +82,7 @@ function batch_update_expectedresult() { * The test that created it is called * testUpdate * and can be found in -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php +* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/BatchTest.php. * * You can see the outcome of the API tests at * https://test.civicrm.org/job/CiviCRM-master-git/ diff --git a/api/v3/examples/Campaign/Create.ex.php b/api/v3/examples/Campaign/Create.ex.php index 342f8c3c64..cf4ab0e714 100644 --- a/api/v3/examples/Campaign/Create.ex.php +++ b/api/v3/examples/Campaign/Create.ex.php @@ -1,4 +1,9 @@ 'first sat of July 2008', ]; - try{ + try { $result = civicrm_api3('Campaign', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -74,23 +79,23 @@ function campaign_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateCampaign" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CampaignTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateCampaign" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CampaignTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Campaign/Delete.ex.php b/api/v3/examples/Campaign/Delete.ex.php index 4acc3c37bb..6a30238d23 100644 --- a/api/v3/examples/Campaign/Delete.ex.php +++ b/api/v3/examples/Campaign/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Campaign', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function campaign_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteCampaign" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CampaignTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteCampaign" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CampaignTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Campaign/Get.ex.php b/api/v3/examples/Campaign/Get.ex.php index 0938d0f7cb..06b906b680 100644 --- a/api/v3/examples/Campaign/Get.ex.php +++ b/api/v3/examples/Campaign/Get.ex.php @@ -1,4 +1,9 @@ 'first sat of July 2008', ]; - try{ + try { $result = civicrm_api3('Campaign', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -60,23 +65,23 @@ function campaign_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetCampaign" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CampaignTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetCampaign" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CampaignTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Case/Create.ex.php b/api/v3/examples/Case/Create.ex.php index abea3d5eca..b03342315c 100644 --- a/api/v3/examples/Case/Create.ex.php +++ b/api/v3/examples/Case/Create.ex.php @@ -1,4 +1,9 @@ 'custom string', ]; - try{ + try { $result = civicrm_api3('Case', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function case_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCaseCreateCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CaseTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCaseCreateCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CaseTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CaseContact/Create.ex.php b/api/v3/examples/CaseContact/Create.ex.php index 9491e8d159..495da74a84 100644 --- a/api/v3/examples/CaseContact/Create.ex.php +++ b/api/v3/examples/CaseContact/Create.ex.php @@ -1,4 +1,9 @@ 20, ]; - try{ + try { $result = civicrm_api3('CaseContact', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function case_contact_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCaseContactCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CaseContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCaseContactCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CaseContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CaseContact/Get.ex.php b/api/v3/examples/CaseContact/Get.ex.php index 75619449d6..0c8e042d3a 100644 --- a/api/v3/examples/CaseContact/Get.ex.php +++ b/api/v3/examples/CaseContact/Get.ex.php @@ -1,4 +1,9 @@ 19, ]; - try{ + try { $result = civicrm_api3('CaseContact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -55,23 +60,23 @@ function case_contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCaseContactGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CaseContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCaseContactGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CaseContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Constant/Get.ex.php b/api/v3/examples/Constant/Get.ex.php index 24ee51a80f..67050d8770 100644 --- a/api/v3/examples/Constant/Get.ex.php +++ b/api/v3/examples/Constant/Get.ex.php @@ -1,4 +1,9 @@ 'activityType', ]; - try{ + try { $result = civicrm_api3('Constant', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -88,23 +93,23 @@ function constant_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testActivityType" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testActivityType" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/APIChainedArray.ex.php b/api/v3/examples/Contact/APIChainedArray.ex.php index dbb7bc713a..9f516784a0 100644 --- a/api/v3/examples/Contact/APIChainedArray.ex.php +++ b/api/v3/examples/Contact/APIChainedArray.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -208,23 +213,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetIndividualWithChainedArrays" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetIndividualWithChainedArrays" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/APIChainedArrayFormats.ex.php b/api/v3/examples/Contact/APIChainedArrayFormats.ex.php index aed4d81f0a..c6065f979e 100644 --- a/api/v3/examples/Contact/APIChainedArrayFormats.ex.php +++ b/api/v3/examples/Contact/APIChainedArrayFormats.ex.php @@ -1,4 +1,9 @@ [], ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -145,23 +150,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetIndividualWithChainedArraysFormats" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetIndividualWithChainedArraysFormats" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/APIChainedArrayMultipleCustom.ex.php b/api/v3/examples/Contact/APIChainedArrayMultipleCustom.ex.php index 75640d5586..629a7be3e7 100644 --- a/api/v3/examples/Contact/APIChainedArrayMultipleCustom.ex.php +++ b/api/v3/examples/Contact/APIChainedArrayMultipleCustom.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -187,23 +192,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetIndividualWithChainedArraysAndMultipleCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetIndividualWithChainedArraysAndMultipleCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.ex.php b/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.ex.php index 9570d244cd..9ba497b712 100644 --- a/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.ex.php +++ b/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testChainingValuesCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/ChainTwoWebsites.ex.php b/api/v3/examples/Contact/ChainTwoWebsites.ex.php index 3526a4d009..93d3bf5bfb 100644 --- a/api/v3/examples/Contact/ChainTwoWebsites.ex.php +++ b/api/v3/examples/Contact/ChainTwoWebsites.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateIndividualWithContributionDottedSyntax" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/ChainTwoWebsitesSyntax2.ex.php b/api/v3/examples/Contact/ChainTwoWebsitesSyntax2.ex.php index 9d587c36b0..dcacaee069 100644 --- a/api/v3/examples/Contact/ChainTwoWebsitesSyntax2.ex.php +++ b/api/v3/examples/Contact/ChainTwoWebsitesSyntax2.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateIndividualWithContributionChainedArrays" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/ContactIDOfLoggedInUserContactAPI.ex.php b/api/v3/examples/Contact/ContactIDOfLoggedInUserContactAPI.ex.php index a3f0d28d45..c8fd6e7328 100644 --- a/api/v3/examples/Contact/ContactIDOfLoggedInUserContactAPI.ex.php +++ b/api/v3/examples/Contact/ContactIDOfLoggedInUserContactAPI.ex.php @@ -1,8 +1,13 @@ 'user_contact_id', ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -122,23 +127,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testLoggedInUserAPISupportToken" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testLoggedInUserAPISupportToken" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/Create.ex.php b/api/v3/examples/Contact/Create.ex.php index 73ebfaa96f..cbf2a40d2c 100644 --- a/api/v3/examples/Contact/Create.ex.php +++ b/api/v3/examples/Contact/Create.ex.php @@ -1,4 +1,9 @@ 'custom string', ]; - try{ + try { $result = civicrm_api3('Contact', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -106,23 +111,23 @@ function contact_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateWithCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateWithCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/CreateParticipantPayment.ex.php b/api/v3/examples/Contact/CreateParticipantPayment.ex.php index 11aa8c872c..a4d7ed26e0 100644 --- a/api/v3/examples/Contact/CreateParticipantPayment.ex.php +++ b/api/v3/examples/Contact/CreateParticipantPayment.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateParticipantWithPayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/CustomFieldGet.ex.php b/api/v3/examples/Contact/CustomFieldGet.ex.php index d2dc04746f..2f76fb669f 100644 --- a/api/v3/examples/Contact/CustomFieldGet.ex.php +++ b/api/v3/examples/Contact/CustomFieldGet.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -59,23 +64,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetWithCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetWithCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/CustomFieldGetReturnSyntaxVariation.ex.php b/api/v3/examples/Contact/CustomFieldGetReturnSyntaxVariation.ex.php index 0c4d4840db..6bb4a9bd8f 100644 --- a/api/v3/examples/Contact/CustomFieldGetReturnSyntaxVariation.ex.php +++ b/api/v3/examples/Contact/CustomFieldGetReturnSyntaxVariation.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -59,23 +64,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetWithCustomReturnSyntax" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetWithCustomReturnSyntax" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/Delete.ex.php b/api/v3/examples/Contact/Delete.ex.php index ab8d6a6809..5573cda036 100644 --- a/api/v3/examples/Contact/Delete.ex.php +++ b/api/v3/examples/Contact/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Contact', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function contact_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/FormatIsSuccess_Fail.ex.php b/api/v3/examples/Contact/FormatIsSuccess_Fail.ex.php index 4bff37e48d..addf2a22a9 100644 --- a/api/v3/examples/Contact/FormatIsSuccess_Fail.ex.php +++ b/api/v3/examples/Contact/FormatIsSuccess_Fail.ex.php @@ -1,9 +1,14 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contact', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -47,23 +52,23 @@ function contact_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactCreateFormatIsSuccessFalse" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactCreateFormatIsSuccessFalse" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/FormatIsSuccess_True.ex.php b/api/v3/examples/Contact/FormatIsSuccess_True.ex.php index ca3a493b0f..3672c1c116 100644 --- a/api/v3/examples/Contact/FormatIsSuccess_True.ex.php +++ b/api/v3/examples/Contact/FormatIsSuccess_True.ex.php @@ -1,9 +1,14 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -47,23 +52,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactGetFormatIsSuccessTrue" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetFormatIsSuccessTrue" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/FormatOnlyID.ex.php b/api/v3/examples/Contact/FormatOnlyID.ex.php index 2aad1376a6..9ed03e5d3f 100644 --- a/api/v3/examples/Contact/FormatOnlyID.ex.php +++ b/api/v3/examples/Contact/FormatOnlyID.ex.php @@ -1,10 +1,15 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactGetFormatIDOnly" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetFormatIDOnly" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/FormatSingleValue.ex.php b/api/v3/examples/Contact/FormatSingleValue.ex.php index 926da812be..59a30148f6 100644 --- a/api/v3/examples/Contact/FormatSingleValue.ex.php +++ b/api/v3/examples/Contact/FormatSingleValue.ex.php @@ -1,10 +1,15 @@ 'display_name', ]; - try{ + try { $result = civicrm_api3('Contact', 'getvalue', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function contact_getvalue_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactGetFormatSingleValue" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetFormatSingleValue" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/Get.ex.php b/api/v3/examples/Contact/Get.ex.php index 86b47f251b..fa0d595b10 100644 --- a/api/v3/examples/Contact/Get.ex.php +++ b/api/v3/examples/Contact/Get.ex.php @@ -1,4 +1,9 @@ 'man2@yahoo.com', ]; - try{ + try { $result = civicrm_api3('Contact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -120,23 +125,23 @@ function contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactGetEmail" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetEmail" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetActions.ex.php b/api/v3/examples/Contact/GetActions.ex.php index 5d293b478f..13c028b40d 100644 --- a/api/v3/examples/Contact/GetActions.ex.php +++ b/api/v3/examples/Contact/GetActions.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetActions" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetCountContact.ex.php b/api/v3/examples/Contact/GetCountContact.ex.php index da0cff83cc..fcb9fd35c1 100644 --- a/api/v3/examples/Contact/GetCountContact.ex.php +++ b/api/v3/examples/Contact/GetCountContact.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Contact', 'getcount', $params); } catch (CiviCRM_API3_Exception $e) { @@ -46,23 +51,23 @@ function contact_getcount_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactGetFormatCountOnly" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetFormatCountOnly" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetFieldsOptions.ex.php b/api/v3/examples/Contact/GetFieldsOptions.ex.php index 392bbe1d38..ad825283f4 100644 --- a/api/v3/examples/Contact/GetFieldsOptions.ex.php +++ b/api/v3/examples/Contact/GetFieldsOptions.ex.php @@ -1,4 +1,9 @@ 'create', ]; - try{ + try { $result = civicrm_api3('Contact', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -1213,23 +1218,23 @@ function contact_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCustomFieldCreateWithOptionValues" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCustomFieldCreateWithOptionValues" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetMergedfrom.ex.php b/api/v3/examples/Contact/GetMergedfrom.ex.php index 5349486299..7c3c477900 100644 --- a/api/v3/examples/Contact/GetMergedfrom.ex.php +++ b/api/v3/examples/Contact/GetMergedfrom.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('Contact', 'getmergedfrom', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function contact_getmergedfrom_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMergedGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMergedGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetMergedto.ex.php b/api/v3/examples/Contact/GetMergedto.ex.php index 7d50e49cc8..1b6c18da3f 100644 --- a/api/v3/examples/Contact/GetMergedto.ex.php +++ b/api/v3/examples/Contact/GetMergedto.ex.php @@ -1,4 +1,9 @@ 6, ]; - try{ + try { $result = civicrm_api3('Contact', 'getmergedto', $params); } catch (CiviCRM_API3_Exception $e) { @@ -54,23 +59,23 @@ function contact_getmergedto_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMergedGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMergedGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetOptions.ex.php b/api/v3/examples/Contact/GetOptions.ex.php index 60cd8e5197..75a7c9b937 100644 --- a/api/v3/examples/Contact/GetOptions.ex.php +++ b/api/v3/examples/Contact/GetOptions.ex.php @@ -1,4 +1,9 @@ 'custom_1', ]; - try{ + try { $result = civicrm_api3('Contact', 'getoptions', $params); } catch (CiviCRM_API3_Exception $e) { @@ -53,23 +58,23 @@ function contact_getoptions_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCustomFieldCreateWithOptionValues" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCustomFieldCreateWithOptionValues" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetSingleContact.ex.php b/api/v3/examples/Contact/GetSingleContact.ex.php index 1c5534833b..22e2bbc90c 100644 --- a/api/v3/examples/Contact/GetSingleContact.ex.php +++ b/api/v3/examples/Contact/GetSingleContact.ex.php @@ -1,10 +1,15 @@ 3, ]; - try{ + try { $result = civicrm_api3('Contact', 'getsingle', $params); } catch (CiviCRM_API3_Exception $e) { @@ -116,23 +121,23 @@ function contact_getsingle_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testContactGetSingleEntityArray" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetSingleEntityArray" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GetUnique.ex.php b/api/v3/examples/Contact/GetUnique.ex.php index b8f75bcc4e..44ddafecbf 100644 --- a/api/v3/examples/Contact/GetUnique.ex.php +++ b/api/v3/examples/Contact/GetUnique.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetUnique" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/GroupFilterUsingContactAPI.ex.php b/api/v3/examples/Contact/GroupFilterUsingContactAPI.ex.php index 1fd3b4f3ac..6fd63dd47d 100644 --- a/api/v3/examples/Contact/GroupFilterUsingContactAPI.ex.php +++ b/api/v3/examples/Contact/GroupFilterUsingContactAPI.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContactGetWithGroupTitleMultipleGroups" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contact/NestedReplaceEmail.ex.php b/api/v3/examples/Contact/NestedReplaceEmail.ex.php index 04d61e2bc6..97447a5537 100644 --- a/api/v3/examples/Contact/NestedReplaceEmail.ex.php +++ b/api/v3/examples/Contact/NestedReplaceEmail.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testReplaceEmailsInChain" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.ex.php b/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.ex.php index a1e4172a0a..e67c8d1de2 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.ex.php +++ b/api/v3/examples/Contribution/ContributionCreateWithHonoreeContact.ex.php @@ -1,4 +1,9 @@ 33, ]; - try{ + try { $result = civicrm_api3('Contribution', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -95,23 +100,23 @@ function contribution_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionWithHonoreeContact" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionWithHonoreeContact" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/ContributionCreateWithNote.ex.php b/api/v3/examples/Contribution/ContributionCreateWithNote.ex.php index 16bf6b2e4d..719872e73e 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithNote.ex.php +++ b/api/v3/examples/Contribution/ContributionCreateWithNote.ex.php @@ -1,4 +1,9 @@ 'my contribution note', ]; - try{ + try { $result = civicrm_api3('Contribution', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -98,23 +103,23 @@ function contribution_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionWithNote" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionWithNote" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.ex.php b/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.ex.php index d830ef95e0..0b8e56397c 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.ex.php +++ b/api/v3/examples/Contribution/ContributionCreateWithSoftCredit.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionWithSoftCredit" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.ex.php b/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.ex.php index 915a68c5bc..528f18d9cb 100644 --- a/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.ex.php +++ b/api/v3/examples/Contribution/ContributionCreateWithSoftCreditDefaults.ex.php @@ -1,4 +1,9 @@ 31, ]; - try{ + try { $result = civicrm_api3('Contribution', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -95,23 +100,23 @@ function contribution_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionWithSoftCreditDefaults" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionWithSoftCreditDefaults" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/Create.ex.php b/api/v3/examples/Contribution/Create.ex.php index c8fedf7f64..2eabdfd2d5 100644 --- a/api/v3/examples/Contribution/Create.ex.php +++ b/api/v3/examples/Contribution/Create.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('Contribution', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -93,23 +98,23 @@ function contribution_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionPayLaterOnline" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionPayLaterOnline" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/CreateWithNestedLineItems.ex.php b/api/v3/examples/Contribution/CreateWithNestedLineItems.ex.php index 36e23c41c7..193e39e77f 100644 --- a/api/v3/examples/Contribution/CreateWithNestedLineItems.ex.php +++ b/api/v3/examples/Contribution/CreateWithNestedLineItems.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionChainedLineItems" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/Delete.ex.php b/api/v3/examples/Contribution/Delete.ex.php index b13f4108dd..abb478aa67 100644 --- a/api/v3/examples/Contribution/Delete.ex.php +++ b/api/v3/examples/Contribution/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contribution', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -51,23 +56,23 @@ function contribution_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteContribution" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteContribution" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/Get.ex.php b/api/v3/examples/Contribution/Get.ex.php index 410875dc47..d0ddd03c96 100644 --- a/api/v3/examples/Contribution/Get.ex.php +++ b/api/v3/examples/Contribution/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Contribution', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -96,23 +101,23 @@ function contribution_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetContribution" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetContribution" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Contribution/GetUnique.ex.php b/api/v3/examples/Contribution/GetUnique.ex.php index 04b96bece6..7f72533307 100644 --- a/api/v3/examples/Contribution/GetUnique.ex.php +++ b/api/v3/examples/Contribution/GetUnique.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testContributionGetUnique" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionPage/Create.ex.php b/api/v3/examples/ContributionPage/Create.ex.php index 5ad0fd2858..6db0cd1e9d 100644 --- a/api/v3/examples/ContributionPage/Create.ex.php +++ b/api/v3/examples/ContributionPage/Create.ex.php @@ -1,4 +1,9 @@ 'Ego Freud', ]; - try{ + try { $result = civicrm_api3('ContributionPage', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -106,23 +111,23 @@ function contribution_page_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionPage" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionPage" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionPage/Delete.ex.php b/api/v3/examples/ContributionPage/Delete.ex.php index 423f5c2b08..ca2f93aab8 100644 --- a/api/v3/examples/ContributionPage/Delete.ex.php +++ b/api/v3/examples/ContributionPage/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('ContributionPage', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function contribution_page_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteContributionPage" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteContributionPage" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionPage/Get.ex.php b/api/v3/examples/ContributionPage/Get.ex.php index ae66d5d0db..d9e613c6aa 100644 --- a/api/v3/examples/ContributionPage/Get.ex.php +++ b/api/v3/examples/ContributionPage/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('ContributionPage', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -76,23 +81,23 @@ function contribution_page_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetBasicContributionPage" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetBasicContributionPage" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionPage/Submit.ex.php b/api/v3/examples/ContributionPage/Submit.ex.php index c7ef21f1c0..cf7a92bf0c 100644 --- a/api/v3/examples/ContributionPage/Submit.ex.php +++ b/api/v3/examples/ContributionPage/Submit.ex.php @@ -1,8 +1,13 @@ 1, ]; - try{ + try { $result = civicrm_api3('ContributionPage', 'submit', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function contribution_page_submit_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testSubmitPledgePayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testSubmitPledgePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionPageTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionRecur/Create.ex.php b/api/v3/examples/ContributionRecur/Create.ex.php index 7018d2ef9f..0fe469e2bf 100644 --- a/api/v3/examples/ContributionRecur/Create.ex.php +++ b/api/v3/examples/ContributionRecur/Create.ex.php @@ -1,4 +1,9 @@ 'day', ]; - try{ + try { $result = civicrm_api3('ContributionRecur', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -88,23 +93,23 @@ function contribution_recur_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionRecur" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionRecur" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionRecur/Delete.ex.php b/api/v3/examples/ContributionRecur/Delete.ex.php index 52e8b6482b..5adcdc38e4 100644 --- a/api/v3/examples/ContributionRecur/Delete.ex.php +++ b/api/v3/examples/ContributionRecur/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('ContributionRecur', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function contribution_recur_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteContributionRecur" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteContributionRecur" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionRecur/Get.ex.php b/api/v3/examples/ContributionRecur/Get.ex.php index ce054103fc..5fac58b698 100644 --- a/api/v3/examples/ContributionRecur/Get.ex.php +++ b/api/v3/examples/ContributionRecur/Get.ex.php @@ -1,4 +1,9 @@ '500', ]; - try{ + try { $result = civicrm_api3('ContributionRecur', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -68,23 +73,23 @@ function contribution_recur_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetContributionRecur" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetContributionRecur" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionRecurTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionSoft/Create.ex.php b/api/v3/examples/ContributionSoft/Create.ex.php index 83a46b9e67..9a95fe6eae 100644 --- a/api/v3/examples/ContributionSoft/Create.ex.php +++ b/api/v3/examples/ContributionSoft/Create.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('ContributionSoft', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -66,23 +71,23 @@ function contribution_soft_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateContributionSoft" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionSoftTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateContributionSoft" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionSoftTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionSoft/Delete.ex.php b/api/v3/examples/ContributionSoft/Delete.ex.php index 8bf895bebd..02c4265afc 100644 --- a/api/v3/examples/ContributionSoft/Delete.ex.php +++ b/api/v3/examples/ContributionSoft/Delete.ex.php @@ -1,4 +1,9 @@ 7, ]; - try{ + try { $result = civicrm_api3('ContributionSoft', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function contribution_soft_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteContributionSoft" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionSoftTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteContributionSoft" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionSoftTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ContributionSoft/Get.ex.php b/api/v3/examples/ContributionSoft/Get.ex.php index 1ac873f42f..26dadff3b4 100644 --- a/api/v3/examples/ContributionSoft/Get.ex.php +++ b/api/v3/examples/ContributionSoft/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('ContributionSoft', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -59,23 +64,23 @@ function contribution_soft_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetContributionSoft" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionSoftTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetContributionSoft" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContributionSoftTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Country/Create.ex.php b/api/v3/examples/Country/Create.ex.php index ab03f90864..4b9778af14 100644 --- a/api/v3/examples/Country/Create.ex.php +++ b/api/v3/examples/Country/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Country', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -63,23 +68,23 @@ function country_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateCountry" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CountryTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateCountry" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CountryTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Country/Delete.ex.php b/api/v3/examples/Country/Delete.ex.php index 691d99a2c6..c5778b5978 100644 --- a/api/v3/examples/Country/Delete.ex.php +++ b/api/v3/examples/Country/Delete.ex.php @@ -1,4 +1,9 @@ 1255, ]; - try{ + try { $result = civicrm_api3('Country', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function country_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteCountry" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CountryTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteCountry" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CountryTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Country/Get.ex.php b/api/v3/examples/Country/Get.ex.php index 827b2c5c0d..de62cbf66c 100644 --- a/api/v3/examples/Country/Get.ex.php +++ b/api/v3/examples/Country/Get.ex.php @@ -1,4 +1,9 @@ 'ZZ', ]; - try{ + try { $result = civicrm_api3('Country', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -57,23 +62,23 @@ function country_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CountryTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CountryTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CustomField/Create.ex.php b/api/v3/examples/CustomField/Create.ex.php index 1d622aa3de..922ce68a2d 100644 --- a/api/v3/examples/CustomField/Create.ex.php +++ b/api/v3/examples/CustomField/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('CustomField', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -91,23 +96,23 @@ function custom_field_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCustomFieldCreateWithEdit" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCustomFieldCreateWithEdit" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CustomField/Delete.ex.php b/api/v3/examples/CustomField/Delete.ex.php index 6ea27931d3..70a300f970 100644 --- a/api/v3/examples/CustomField/Delete.ex.php +++ b/api/v3/examples/CustomField/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('CustomField', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function custom_field_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCustomFieldDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCustomFieldDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CustomGroup/Create.ex.php b/api/v3/examples/CustomGroup/Create.ex.php index 99787e2640..efc136f05f 100644 --- a/api/v3/examples/CustomGroup/Create.ex.php +++ b/api/v3/examples/CustomGroup/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('CustomGroup', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -83,23 +88,23 @@ function custom_group_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCustomGroupCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCustomGroupCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CustomGroup/Delete.ex.php b/api/v3/examples/CustomGroup/Delete.ex.php index f09b053b27..235dee9161 100644 --- a/api/v3/examples/CustomGroup/Delete.ex.php +++ b/api/v3/examples/CustomGroup/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('CustomGroup', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function custom_group_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCustomGroupDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCustomGroupDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CustomGroup/Get.ex.php b/api/v3/examples/CustomGroup/Get.ex.php index 29cc2f521b..1ad72fa5d5 100644 --- a/api/v3/examples/CustomGroup/Get.ex.php +++ b/api/v3/examples/CustomGroup/Get.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetCustomGroupSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/CustomValue/Create.ex.php b/api/v3/examples/CustomValue/Create.ex.php index 966133dacd..4b2ca0b56f 100644 --- a/api/v3/examples/CustomValue/Create.ex.php +++ b/api/v3/examples/CustomValue/Create.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('CustomValue', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function custom_value_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateCustomValue" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateCustomValue" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/CustomValue/FormatFieldName.ex.php b/api/v3/examples/CustomValue/FormatFieldName.ex.php index b901dade8a..9918a76d4d 100644 --- a/api/v3/examples/CustomValue/FormatFieldName.ex.php +++ b/api/v3/examples/CustomValue/FormatFieldName.ex.php @@ -1,8 +1,13 @@ 1, ]; - try{ + try { $result = civicrm_api3('CustomValue', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -99,23 +104,23 @@ function custom_value_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetMultipleCustomValues" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMultipleCustomValues" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/CustomValue/Get.ex.php b/api/v3/examples/CustomValue/Get.ex.php index 126b6e350f..77fa73348d 100644 --- a/api/v3/examples/CustomValue/Get.ex.php +++ b/api/v3/examples/CustomValue/Get.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('CustomValue', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -98,23 +103,23 @@ function custom_value_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetMultipleCustomValues" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMultipleCustomValues" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Domain/Create.ex.php b/api/v3/examples/Domain/Create.ex.php index 70280cf0b4..f4bbe211fc 100644 --- a/api/v3/examples/Domain/Create.ex.php +++ b/api/v3/examples/Domain/Create.ex.php @@ -1,4 +1,9 @@ 7, ]; - try{ + try { $result = civicrm_api3('Domain', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -62,23 +67,23 @@ function domain_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/DomainTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/DomainTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Domain/Get.ex.php b/api/v3/examples/Domain/Get.ex.php index 9ccfc284cd..1b1f93a35b 100644 --- a/api/v3/examples/Domain/Get.ex.php +++ b/api/v3/examples/Domain/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Domain', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -102,23 +107,23 @@ function domain_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/DomainTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/DomainTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Email/Create.ex.php b/api/v3/examples/Email/Create.ex.php index b2db488cab..c9aecc1b4e 100644 --- a/api/v3/examples/Email/Create.ex.php +++ b/api/v3/examples/Email/Create.ex.php @@ -1,4 +1,9 @@ '2', ]; - try{ + try { $result = civicrm_api3('Email', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -66,23 +71,23 @@ function email_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testEmailOnHold" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testEmailOnHold" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Email/Delete.ex.php b/api/v3/examples/Email/Delete.ex.php index b872078fc5..dc6ff46539 100644 --- a/api/v3/examples/Email/Delete.ex.php +++ b/api/v3/examples/Email/Delete.ex.php @@ -1,4 +1,9 @@ 12, ]; - try{ + try { $result = civicrm_api3('Email', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function email_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteEmail" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteEmail" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Email/Replace.ex.php b/api/v3/examples/Email/Replace.ex.php index 4623896d51..6609d21aa9 100644 --- a/api/v3/examples/Email/Replace.ex.php +++ b/api/v3/examples/Email/Replace.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testReplaceEmail" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EmailTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/EntityBatch/Create.ex.php b/api/v3/examples/EntityBatch/Create.ex.php index b2039d6d94..3572431e8d 100644 --- a/api/v3/examples/EntityBatch/Create.ex.php +++ b/api/v3/examples/EntityBatch/Create.ex.php @@ -1,4 +1,9 @@ 'civicrm_financial_trxn', ]; - try{ + try { $result = civicrm_api3('EntityBatch', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function entity_batch_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateEntityBatch" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityBatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateEntityBatch" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityBatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/EntityBatch/Delete.ex.php b/api/v3/examples/EntityBatch/Delete.ex.php index 1c195417e6..1dac21e44b 100644 --- a/api/v3/examples/EntityBatch/Delete.ex.php +++ b/api/v3/examples/EntityBatch/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('EntityBatch', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function entity_batch_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteEntityBatch" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityBatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteEntityBatch" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityBatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/EntityBatch/Get.ex.php b/api/v3/examples/EntityBatch/Get.ex.php index 20044f5e62..bcd68a0b1a 100644 --- a/api/v3/examples/EntityBatch/Get.ex.php +++ b/api/v3/examples/EntityBatch/Get.ex.php @@ -1,4 +1,9 @@ 'civicrm_financial_trxn', ]; - try{ + try { $result = civicrm_api3('EntityBatch', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function entity_batch_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetEntityBatch" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityBatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetEntityBatch" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityBatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/EntityTag/Create.ex.php b/api/v3/examples/EntityTag/Create.ex.php index d819a96e80..986ecfbfe3 100644 --- a/api/v3/examples/EntityTag/Create.ex.php +++ b/api/v3/examples/EntityTag/Create.ex.php @@ -1,4 +1,9 @@ '6', ]; - try{ + try { $result = civicrm_api3('EntityTag', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function entity_tag_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testIndividualEntityTagGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityTagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testIndividualEntityTagGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityTagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/EntityTag/Delete.ex.php b/api/v3/examples/EntityTag/Delete.ex.php index 51ecc823bb..f2a4915a9f 100644 --- a/api/v3/examples/EntityTag/Delete.ex.php +++ b/api/v3/examples/EntityTag/Delete.ex.php @@ -1,4 +1,9 @@ '19', ]; - try{ + try { $result = civicrm_api3('EntityTag', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -49,23 +54,23 @@ function entity_tag_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testEntityTagDeleteHH" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityTagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testEntityTagDeleteHH" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityTagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/EntityTag/Get.ex.php b/api/v3/examples/EntityTag/Get.ex.php index 5312259a60..1e0bfdda43 100644 --- a/api/v3/examples/EntityTag/Get.ex.php +++ b/api/v3/examples/EntityTag/Get.ex.php @@ -1,4 +1,9 @@ 18, ]; - try{ + try { $result = civicrm_api3('EntityTag', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function entity_tag_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testIndividualEntityTagGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityTagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testIndividualEntityTagGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EntityTagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Event/ContactRefCustomField.ex.php b/api/v3/examples/Event/ContactRefCustomField.ex.php index 5fe5f62f35..50f77cd80f 100644 --- a/api/v3/examples/Event/ContactRefCustomField.ex.php +++ b/api/v3/examples/Event/ContactRefCustomField.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('Event', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -86,23 +91,23 @@ function event_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testEventGetCustomContactRefFieldCRM16036" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testEventGetCustomContactRefFieldCRM16036" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Event/Create.ex.php b/api/v3/examples/Event/Create.ex.php index 7f79b3a257..fec2def214 100644 --- a/api/v3/examples/Event/Create.ex.php +++ b/api/v3/examples/Event/Create.ex.php @@ -1,4 +1,9 @@ 0, ]; - try{ + try { $result = civicrm_api3('Event', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -134,23 +139,23 @@ function event_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateEventSuccess" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateEventSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Event/Delete.ex.php b/api/v3/examples/Event/Delete.ex.php index 99e53f4ab0..e266391226 100644 --- a/api/v3/examples/Event/Delete.ex.php +++ b/api/v3/examples/Event/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Event', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function event_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Event/Get.ex.php b/api/v3/examples/Event/Get.ex.php index aee29dd29b..bb24a02302 100644 --- a/api/v3/examples/Event/Get.ex.php +++ b/api/v3/examples/Event/Get.ex.php @@ -1,4 +1,9 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('Event', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -81,23 +86,23 @@ function event_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetEventByEventTitle" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetEventByEventTitle" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Event/IsCurrentOption.ex.php b/api/v3/examples/Event/IsCurrentOption.ex.php index 8a40f7a6f2..c094ec7ff5 100644 --- a/api/v3/examples/Event/IsCurrentOption.ex.php +++ b/api/v3/examples/Event/IsCurrentOption.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Event', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -89,23 +94,23 @@ function event_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetIsCurrent" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetIsCurrent" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Event/IsFullOption.ex.php b/api/v3/examples/Event/IsFullOption.ex.php index 07e6b42994..7b609c7a29 100644 --- a/api/v3/examples/Event/IsFullOption.ex.php +++ b/api/v3/examples/Event/IsFullOption.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Event', 'getsingle', $params); } catch (CiviCRM_API3_Exception $e) { @@ -78,23 +83,23 @@ function event_getsingle_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetSingleReturnIsFull" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSingleReturnIsFull" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Grant/Create.ex.php b/api/v3/examples/Grant/Create.ex.php index 80c79bab87..e48884fdad 100644 --- a/api/v3/examples/Grant/Create.ex.php +++ b/api/v3/examples/Grant/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Grant', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -74,23 +79,23 @@ function grant_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateGrant" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GrantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateGrant" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GrantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Grant/Delete.ex.php b/api/v3/examples/Grant/Delete.ex.php index 8ef84ffc35..f214c55fbd 100644 --- a/api/v3/examples/Grant/Delete.ex.php +++ b/api/v3/examples/Grant/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Grant', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function grant_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteGrant" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GrantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteGrant" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GrantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Grant/Get.ex.php b/api/v3/examples/Grant/Get.ex.php index 16692d60bf..0516eec65f 100644 --- a/api/v3/examples/Grant/Get.ex.php +++ b/api/v3/examples/Grant/Get.ex.php @@ -1,4 +1,9 @@ 'Just Because', ]; - try{ + try { $result = civicrm_api3('Grant', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function grant_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetGrant" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GrantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetGrant" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GrantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Group/Get.ex.php b/api/v3/examples/Group/Get.ex.php index f2a35bf736..83768a1b95 100644 --- a/api/v3/examples/Group/Get.ex.php +++ b/api/v3/examples/Group/Get.ex.php @@ -1,4 +1,9 @@ 'Test Group 1', ]; - try{ + try { $result = civicrm_api3('Group', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -67,23 +72,23 @@ function group_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetGroupParamsWithGroupName" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetGroupParamsWithGroupName" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Group/GetFields.ex.php b/api/v3/examples/Group/GetFields.ex.php index 09d09af2a4..6451c6428a 100644 --- a/api/v3/examples/Group/GetFields.ex.php +++ b/api/v3/examples/Group/GetFields.ex.php @@ -1,4 +1,9 @@ 'create', ]; - try{ + try { $result = civicrm_api3('Group', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -346,23 +351,23 @@ function group_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testgetfields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testgetfields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupContact/Create.ex.php b/api/v3/examples/GroupContact/Create.ex.php index afb9496b78..e60ffc8bd5 100644 --- a/api/v3/examples/GroupContact/Create.ex.php +++ b/api/v3/examples/GroupContact/Create.ex.php @@ -1,4 +1,9 @@ 11, ]; - try{ + try { $result = civicrm_api3('GroupContact', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -53,23 +58,23 @@ function group_contact_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupContact/Delete.ex.php b/api/v3/examples/GroupContact/Delete.ex.php index 0f4db2245f..590ea6f515 100644 --- a/api/v3/examples/GroupContact/Delete.ex.php +++ b/api/v3/examples/GroupContact/Delete.ex.php @@ -1,4 +1,9 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('GroupContact', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -52,23 +57,23 @@ function group_contact_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePermanent" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePermanent" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupContact/Get.ex.php b/api/v3/examples/GroupContact/Get.ex.php index e7718d5511..823559f8d4 100644 --- a/api/v3/examples/GroupContact/Get.ex.php +++ b/api/v3/examples/GroupContact/Get.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('GroupContact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -59,23 +64,23 @@ function group_contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupContact/GetWithGroupID.ex.php b/api/v3/examples/GroupContact/GetWithGroupID.ex.php index 2607a81f7f..f1bc83665a 100644 --- a/api/v3/examples/GroupContact/GetWithGroupID.ex.php +++ b/api/v3/examples/GroupContact/GetWithGroupID.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('GroupContact', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -85,23 +90,23 @@ function group_contact_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetGroupID" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetGroupID" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupContactTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupNesting/Create.ex.php b/api/v3/examples/GroupNesting/Create.ex.php index a25f5bb463..2f2d7268a6 100644 --- a/api/v3/examples/GroupNesting/Create.ex.php +++ b/api/v3/examples/GroupNesting/Create.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('GroupNesting', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function group_nesting_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupNestingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupNestingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupNesting/Delete.ex.php b/api/v3/examples/GroupNesting/Delete.ex.php index dc99c74c88..536ac38d64 100644 --- a/api/v3/examples/GroupNesting/Delete.ex.php +++ b/api/v3/examples/GroupNesting/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('GroupNesting', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function group_nesting_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupNestingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupNestingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupNesting/Get.ex.php b/api/v3/examples/GroupNesting/Get.ex.php index 40631a5cc3..1625e8bb7e 100644 --- a/api/v3/examples/GroupNesting/Get.ex.php +++ b/api/v3/examples/GroupNesting/Get.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('GroupNesting', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function group_nesting_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupNestingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupNestingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupOrganization/Create.ex.php b/api/v3/examples/GroupOrganization/Create.ex.php index 9d812d508a..717c4c3bcf 100644 --- a/api/v3/examples/GroupOrganization/Create.ex.php +++ b/api/v3/examples/GroupOrganization/Create.ex.php @@ -1,4 +1,9 @@ 6, ]; - try{ + try { $result = civicrm_api3('GroupOrganization', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function group_organization_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGroupOrganizationCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupOrganizationTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGroupOrganizationCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupOrganizationTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupOrganization/Delete.ex.php b/api/v3/examples/GroupOrganization/Delete.ex.php index 722934bf19..439e672c39 100644 --- a/api/v3/examples/GroupOrganization/Delete.ex.php +++ b/api/v3/examples/GroupOrganization/Delete.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('GroupOrganization', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function group_organization_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGroupOrganizationDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupOrganizationTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGroupOrganizationDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupOrganizationTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/GroupOrganization/Get.ex.php b/api/v3/examples/GroupOrganization/Get.ex.php index 500c215a79..0e1ebd68d9 100644 --- a/api/v3/examples/GroupOrganization/Get.ex.php +++ b/api/v3/examples/GroupOrganization/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('GroupOrganization', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function group_organization_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGroupOrganizationGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupOrganizationTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGroupOrganizationGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/GroupOrganizationTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Im/Create.ex.php b/api/v3/examples/Im/Create.ex.php index dda5c2ccf6..5b0d1619f2 100644 --- a/api/v3/examples/Im/Create.ex.php +++ b/api/v3/examples/Im/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Im', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function im_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateImDefaultLocation" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ImTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateImDefaultLocation" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ImTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Im/Delete.ex.php b/api/v3/examples/Im/Delete.ex.php index 975bfac70b..f580d63666 100644 --- a/api/v3/examples/Im/Delete.ex.php +++ b/api/v3/examples/Im/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('Im', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function im_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteIm" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ImTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteIm" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ImTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Im/Get.ex.php b/api/v3/examples/Im/Get.ex.php index e2cacaad3f..ba86e21b12 100644 --- a/api/v3/examples/Im/Get.ex.php +++ b/api/v3/examples/Im/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Im', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -62,23 +67,23 @@ function im_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetIm" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ImTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetIm" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ImTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Job/Clone.ex.php b/api/v3/examples/Job/Clone.ex.php index b2235b8854..2136ac4186 100644 --- a/api/v3/examples/Job/Clone.ex.php +++ b/api/v3/examples/Job/Clone.ex.php @@ -1,4 +1,9 @@ 31, ]; - try{ + try { $result = civicrm_api3('Job', 'clone', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function job_clone_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testClone" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/JobTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testClone" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/JobTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Job/Create.ex.php b/api/v3/examples/Job/Create.ex.php index 5109836ee9..6dd7a4c011 100644 --- a/api/v3/examples/Job/Create.ex.php +++ b/api/v3/examples/Job/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Job', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -70,23 +75,23 @@ function job_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/JobTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/JobTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Job/Delete.ex.php b/api/v3/examples/Job/Delete.ex.php index 6bbd95169a..995e8654eb 100644 --- a/api/v3/examples/Job/Delete.ex.php +++ b/api/v3/examples/Job/Delete.ex.php @@ -1,4 +1,9 @@ 33, ]; - try{ + try { $result = civicrm_api3('Job', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -43,23 +48,23 @@ function job_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/JobTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/JobTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/LineItem/Create.ex.php b/api/v3/examples/LineItem/Create.ex.php index 050bcfa25d..d0eae85f80 100644 --- a/api/v3/examples/LineItem/Create.ex.php +++ b/api/v3/examples/LineItem/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('LineItem', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -73,23 +78,23 @@ function line_item_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateLineItem" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateLineItem" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/LineItem/Delete.ex.php b/api/v3/examples/LineItem/Delete.ex.php index a84be8f560..bc27daf2e7 100644 --- a/api/v3/examples/LineItem/Delete.ex.php +++ b/api/v3/examples/LineItem/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('LineItem', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function line_item_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteLineItem" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteLineItem" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/LineItem/Get.ex.php b/api/v3/examples/LineItem/Get.ex.php index 2e5d7fa2ec..9c4d330954 100644 --- a/api/v3/examples/LineItem/Get.ex.php +++ b/api/v3/examples/LineItem/Get.ex.php @@ -1,4 +1,9 @@ 'civicrm_contribution', ]; - try{ + try { $result = civicrm_api3('LineItem', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function line_item_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetBasicLineItem" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetBasicLineItem" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LineItemTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/LocBlock/Create.ex.php b/api/v3/examples/LocBlock/Create.ex.php index b752ec02a6..5d3ef0aa20 100644 --- a/api/v3/examples/LocBlock/Create.ex.php +++ b/api/v3/examples/LocBlock/Create.ex.php @@ -1,8 +1,13 @@ 3, ]; - try{ + try { $result = civicrm_api3('LocBlock', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function loc_block_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateLocBlock" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LocBlockTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateLocBlock" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LocBlockTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/LocBlock/CreateEntities.ex.php b/api/v3/examples/LocBlock/CreateEntities.ex.php index 1ac4588448..17ceb410e3 100644 --- a/api/v3/examples/LocBlock/CreateEntities.ex.php +++ b/api/v3/examples/LocBlock/CreateEntities.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateLocBlockEntities" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LocBlockTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/LocBlock/Get.ex.php b/api/v3/examples/LocBlock/Get.ex.php index 926c03d45e..338cc385f4 100644 --- a/api/v3/examples/LocBlock/Get.ex.php +++ b/api/v3/examples/LocBlock/Get.ex.php @@ -1,8 +1,13 @@ 'all', ]; - try{ + try { $result = civicrm_api3('LocBlock', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -93,23 +98,23 @@ function loc_block_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateLocBlockEntities" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LocBlockTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateLocBlockEntities" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LocBlockTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Logging/Get.ex.php b/api/v3/examples/Logging/Get.ex.php index a0a26f4c25..d484e16ec6 100644 --- a/api/v3/examples/Logging/Get.ex.php +++ b/api/v3/examples/Logging/Get.ex.php @@ -1,4 +1,9 @@ 'wooty wop wop', ]; - try{ + try { $result = civicrm_api3('Logging', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -219,23 +224,23 @@ function logging_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetNoDate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LoggingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetNoDate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/LoggingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Logging/Revert.ex.php b/api/v3/examples/Logging/Revert.ex.php index 32fa318ff2..7c9906ce70 100644 --- a/api/v3/examples/Logging/Revert.ex.php +++ b/api/v3/examples/Logging/Revert.ex.php @@ -1,4 +1,9 @@ '2019-08-20 19:22:48', ]; - try{ + try { $result = civicrm_api3('Logging', 'revert', $params); } catch (CiviCRM_API3_Exception $e) { @@ -49,23 +54,23 @@ function logging_revert_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "/home/seamus/buildkit/build/47-test/sites/all/modules/civicrm/tests/phpunit/api/v3/LoggingTest.php" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/Revert -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "/home/seamus/buildkit/build/47-test/sites/all/modules/civicrm/tests/phpunit/api/v3/LoggingTest.php" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/Revert + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailSettings/ChainedGetDelete.ex.php b/api/v3/examples/MailSettings/ChainedGetDelete.ex.php index b243259d28..96b5d85711 100644 --- a/api/v3/examples/MailSettings/ChainedGetDelete.ex.php +++ b/api/v3/examples/MailSettings/ChainedGetDelete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MailSettings', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function mail_settings_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetMailSettingsChainDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMailSettingsChainDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailSettings/Create.ex.php b/api/v3/examples/MailSettings/Create.ex.php index 08eba66597..9478fb5768 100644 --- a/api/v3/examples/MailSettings/Create.ex.php +++ b/api/v3/examples/MailSettings/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MailSettings', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -74,23 +79,23 @@ function mail_settings_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteMailSettings" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteMailSettings" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailSettings/Delete.ex.php b/api/v3/examples/MailSettings/Delete.ex.php index dbfc74cfc5..7b82359b83 100644 --- a/api/v3/examples/MailSettings/Delete.ex.php +++ b/api/v3/examples/MailSettings/Delete.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('MailSettings', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function mail_settings_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteMailSettings" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteMailSettings" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailSettings/Get.ex.php b/api/v3/examples/MailSettings/Get.ex.php index 42d80d7c2e..a4cf3e0370 100644 --- a/api/v3/examples/MailSettings/Get.ex.php +++ b/api/v3/examples/MailSettings/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MailSettings', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -69,23 +74,23 @@ function mail_settings_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetMailSettings" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMailSettings" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailSettingsTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailSettings/GetOptions.ex.php b/api/v3/examples/MailSettings/GetOptions.ex.php index a1c39a2fcb..95ed1c3c3d 100644 --- a/api/v3/examples/MailSettings/GetOptions.ex.php +++ b/api/v3/examples/MailSettings/GetOptions.ex.php @@ -1,4 +1,9 @@ 'protocol', ]; - try{ + try { $result = civicrm_api3('MailSettings', 'getoptions', $params); } catch (CiviCRM_API3_Exception $e) { @@ -53,23 +58,23 @@ function mail_settings_getoptions_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testmailProtocol" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testmailProtocol" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mailing/Clone.ex.php b/api/v3/examples/Mailing/Clone.ex.php index 46b12fa62b..6a7b0fe773 100644 --- a/api/v3/examples/Mailing/Clone.ex.php +++ b/api/v3/examples/Mailing/Clone.ex.php @@ -1,4 +1,9 @@ 27, ]; - try{ + try { $result = civicrm_api3('Mailing', 'clone', $params); } catch (CiviCRM_API3_Exception $e) { @@ -97,23 +102,23 @@ https://civicrm.org } /* -* This example has been generated from the API test suite. -* The test that created it is called "testClone" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testClone" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mailing/Create.ex.php b/api/v3/examples/Mailing/Create.ex.php index 6562c989a0..111af79210 100644 --- a/api/v3/examples/Mailing/Create.ex.php +++ b/api/v3/examples/Mailing/Create.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMailerPreviewRecipients" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mailing/Delete.ex.php b/api/v3/examples/Mailing/Delete.ex.php index b0070b6eb4..c6606a95ee 100644 --- a/api/v3/examples/Mailing/Delete.ex.php +++ b/api/v3/examples/Mailing/Delete.ex.php @@ -1,4 +1,9 @@ 26, ]; - try{ + try { $result = civicrm_api3('Mailing', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function mailing_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMailerDeleteSuccess" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMailerDeleteSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mailing/GetTokens.ex.php b/api/v3/examples/Mailing/GetTokens.ex.php index 986fd86e61..f7235d7903 100644 --- a/api/v3/examples/Mailing/GetTokens.ex.php +++ b/api/v3/examples/Mailing/GetTokens.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMailGetTokens" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mailing/Submit.ex.php b/api/v3/examples/Mailing/Submit.ex.php index 059ac070e7..5806fe713f 100644 --- a/api/v3/examples/Mailing/Submit.ex.php +++ b/api/v3/examples/Mailing/Submit.ex.php @@ -1,4 +1,9 @@ 22, ]; - try{ + try { $result = civicrm_api3('Mailing', 'submit', $params); } catch (CiviCRM_API3_Exception $e) { @@ -99,23 +104,23 @@ https://civicrm.org } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMailerSubmit" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMailerSubmit" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailingAB/Create.ex.php b/api/v3/examples/MailingAB/Create.ex.php index 8a53d6ca71..55be6a9efd 100644 --- a/api/v3/examples/MailingAB/Create.ex.php +++ b/api/v3/examples/MailingAB/Create.ex.php @@ -1,4 +1,9 @@ 10, ]; - try{ + try { $result = civicrm_api3('MailingAB', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -72,23 +77,23 @@ function mailing_a_b_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMailingABCreateSuccess" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingABTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMailingABCreateSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingABTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailingEventSubscribe/Create.ex.php b/api/v3/examples/MailingEventSubscribe/Create.ex.php index 01a5127b75..c466adee7b 100644 --- a/api/v3/examples/MailingEventSubscribe/Create.ex.php +++ b/api/v3/examples/MailingEventSubscribe/Create.ex.php @@ -1,4 +1,9 @@ '20101212121212', ]; - try{ + try { $result = civicrm_api3('MailingEventSubscribe', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -59,23 +64,23 @@ function mailing_event_subscribe_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMailerGroupSubscribeGivenContactId" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMailerGroupSubscribeGivenContactId" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MailingGroup/Subscribe.ex.php b/api/v3/examples/MailingGroup/Subscribe.ex.php index 50c0a7ab9c..bfe0799b37 100644 --- a/api/v3/examples/MailingGroup/Subscribe.ex.php +++ b/api/v3/examples/MailingGroup/Subscribe.ex.php @@ -1,8 +1,12 @@ '20101212121212', ]; - try{ + try { $result = civicrm_api3('mailing_group', 'subscribe', $params); } catch (CiviCRM_API3_Exception $e) { @@ -63,7 +67,7 @@ function mailing_group_subscribe_expectedresult() { * The test that created it is called * testMailerGroupSubscribeGivenContactId * and can be found in -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingGroupTest.php +* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MailingGroupTest.php. * * You can see the outcome of the API tests at * https://test.civicrm.org/job/CiviCRM-master-git/ diff --git a/api/v3/examples/Mapping/Create.ex.php b/api/v3/examples/Mapping/Create.ex.php index 4d5258489b..630db22863 100644 --- a/api/v3/examples/Mapping/Create.ex.php +++ b/api/v3/examples/Mapping/Create.ex.php @@ -1,4 +1,9 @@ 7, ]; - try{ + try { $result = civicrm_api3('Mapping', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function mapping_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateMapping" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateMapping" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mapping/Delete.ex.php b/api/v3/examples/Mapping/Delete.ex.php index 33529d7cb3..441b55c838 100644 --- a/api/v3/examples/Mapping/Delete.ex.php +++ b/api/v3/examples/Mapping/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Mapping', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function mapping_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteMapping" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteMapping" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Mapping/Get.ex.php b/api/v3/examples/Mapping/Get.ex.php index 96161bb1d3..2599098179 100644 --- a/api/v3/examples/Mapping/Get.ex.php +++ b/api/v3/examples/Mapping/Get.ex.php @@ -1,4 +1,9 @@ 7, ]; - try{ + try { $result = civicrm_api3('Mapping', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function mapping_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetMapping" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMapping" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MappingField/Create.ex.php b/api/v3/examples/MappingField/Create.ex.php index 2841970b27..0ba7a34fa7 100644 --- a/api/v3/examples/MappingField/Create.ex.php +++ b/api/v3/examples/MappingField/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MappingField', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -70,23 +75,23 @@ function mapping_field_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateMappingField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateMappingField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MappingField/Delete.ex.php b/api/v3/examples/MappingField/Delete.ex.php index 0dad4e6fd5..3faab7c636 100644 --- a/api/v3/examples/MappingField/Delete.ex.php +++ b/api/v3/examples/MappingField/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('MappingField', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function mapping_field_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteMappingField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteMappingField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MappingField/Get.ex.php b/api/v3/examples/MappingField/Get.ex.php index a2fa16de31..ee39aa1edc 100644 --- a/api/v3/examples/MappingField/Get.ex.php +++ b/api/v3/examples/MappingField/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MappingField', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -62,23 +67,23 @@ function mapping_field_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetMappingField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMappingField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MappingFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/Create.ex.php b/api/v3/examples/Membership/Create.ex.php index 091043fb85..5226c01707 100644 --- a/api/v3/examples/Membership/Create.ex.php +++ b/api/v3/examples/Membership/Create.ex.php @@ -1,4 +1,9 @@ 31, ]; - try{ + try { $result = civicrm_api3('Membership', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -75,23 +80,23 @@ function membership_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMembershipCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMembershipCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/CreateWithCustomData.ex.php b/api/v3/examples/Membership/CreateWithCustomData.ex.php index 8a108197c9..57ef617065 100644 --- a/api/v3/examples/Membership/CreateWithCustomData.ex.php +++ b/api/v3/examples/Membership/CreateWithCustomData.ex.php @@ -1,4 +1,9 @@ 'custom string', ]; - try{ + try { $result = civicrm_api3('Membership', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -76,23 +81,23 @@ function membership_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateWithCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateWithCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/Delete.ex.php b/api/v3/examples/Membership/Delete.ex.php index fdc16636eb..d11b0d0793 100644 --- a/api/v3/examples/Membership/Delete.ex.php +++ b/api/v3/examples/Membership/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Membership', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -49,23 +54,23 @@ function membership_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testMembershipDeletePreserveContribution" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testMembershipDeletePreserveContribution" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/FilterIsCurrent.ex.php b/api/v3/examples/Membership/FilterIsCurrent.ex.php index fba84157ee..f0efeea000 100644 --- a/api/v3/examples/Membership/FilterIsCurrent.ex.php +++ b/api/v3/examples/Membership/FilterIsCurrent.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetOnlyActive" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/Get.ex.php b/api/v3/examples/Membership/Get.ex.php index 1fb614344e..d3242edf66 100644 --- a/api/v3/examples/Membership/Get.ex.php +++ b/api/v3/examples/Membership/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Membership', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -67,23 +72,23 @@ function membership_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetWithParamsMemberShipIdAndCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetWithParamsMemberShipIdAndCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/SearchWithCustomData.ex.php b/api/v3/examples/Membership/SearchWithCustomData.ex.php index b287131e78..7c79fa1d40 100644 --- a/api/v3/examples/Membership/SearchWithCustomData.ex.php +++ b/api/v3/examples/Membership/SearchWithCustomData.ex.php @@ -1,4 +1,9 @@ 36, ]; - try{ + try { $result = civicrm_api3('Membership', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -75,23 +80,23 @@ function membership_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testSearchWithCustomDataCRM16036" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testSearchWithCustomDataCRM16036" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Membership/UpdateCustomData.ex.php b/api/v3/examples/Membership/UpdateCustomData.ex.php index 243c5968ca..625e77263f 100644 --- a/api/v3/examples/Membership/UpdateCustomData.ex.php +++ b/api/v3/examples/Membership/UpdateCustomData.ex.php @@ -1,4 +1,9 @@ 'custom string', ]; - try{ + try { $result = civicrm_api3('Membership', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -76,23 +81,23 @@ function membership_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUpdateWithCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUpdateWithCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipPayment/Create.ex.php b/api/v3/examples/MembershipPayment/Create.ex.php index 5cf4a9ee27..73d21e41b4 100644 --- a/api/v3/examples/MembershipPayment/Create.ex.php +++ b/api/v3/examples/MembershipPayment/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MembershipPayment', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function membership_payment_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipPaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipPaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipPayment/Get.ex.php b/api/v3/examples/MembershipPayment/Get.ex.php index fa8c03591c..8e35a1426d 100644 --- a/api/v3/examples/MembershipPayment/Get.ex.php +++ b/api/v3/examples/MembershipPayment/Get.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('MembershipPayment', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function membership_payment_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipPaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipPaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipStatus/Create.ex.php b/api/v3/examples/MembershipStatus/Create.ex.php index 62b129aa52..fa9510a99a 100644 --- a/api/v3/examples/MembershipStatus/Create.ex.php +++ b/api/v3/examples/MembershipStatus/Create.ex.php @@ -1,4 +1,9 @@ 'test membership status', ]; - try{ + try { $result = civicrm_api3('MembershipStatus', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -67,23 +72,23 @@ function membership_status_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipStatusTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipStatusTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipStatus/Get.ex.php b/api/v3/examples/MembershipStatus/Get.ex.php index f31da82b91..6039ecb367 100644 --- a/api/v3/examples/MembershipStatus/Get.ex.php +++ b/api/v3/examples/MembershipStatus/Get.ex.php @@ -1,4 +1,9 @@ 'test status', ]; - try{ + try { $result = civicrm_api3('MembershipStatus', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -62,23 +67,23 @@ function membership_status_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipStatusTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipStatusTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipType/Create.ex.php b/api/v3/examples/MembershipType/Create.ex.php index b3adad9070..bda7d55f17 100644 --- a/api/v3/examples/MembershipType/Create.ex.php +++ b/api/v3/examples/MembershipType/Create.ex.php @@ -1,4 +1,9 @@ 'public', ]; - try{ + try { $result = civicrm_api3('MembershipType', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -83,23 +88,23 @@ function membership_type_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipType/Delete.ex.php b/api/v3/examples/MembershipType/Delete.ex.php index 810c7b062d..7ee0f2a758 100644 --- a/api/v3/examples/MembershipType/Delete.ex.php +++ b/api/v3/examples/MembershipType/Delete.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('MembershipType', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function membership_type_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MembershipType/Get.ex.php b/api/v3/examples/MembershipType/Get.ex.php index 35770ea494..52f1c1a825 100644 --- a/api/v3/examples/MembershipType/Get.ex.php +++ b/api/v3/examples/MembershipType/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MembershipType', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function membership_type_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MembershipTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MessageTemplate/Create.ex.php b/api/v3/examples/MessageTemplate/Create.ex.php index 293e6da69f..17e48b027b 100644 --- a/api/v3/examples/MessageTemplate/Create.ex.php +++ b/api/v3/examples/MessageTemplate/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MessageTemplate', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -69,23 +74,23 @@ function message_template_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MessageTemplate/Delete.ex.php b/api/v3/examples/MessageTemplate/Delete.ex.php index 5829e0df6c..99192c7874 100644 --- a/api/v3/examples/MessageTemplate/Delete.ex.php +++ b/api/v3/examples/MessageTemplate/Delete.ex.php @@ -1,4 +1,9 @@ 72, ]; - try{ + try { $result = civicrm_api3('MessageTemplate', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function message_template_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/MessageTemplate/Get.ex.php b/api/v3/examples/MessageTemplate/Get.ex.php index 9874c57f2e..f52c9af958 100644 --- a/api/v3/examples/MessageTemplate/Get.ex.php +++ b/api/v3/examples/MessageTemplate/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('MessageTemplate', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -69,23 +74,23 @@ function message_template_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/MessageTemplateTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Note/Create.ex.php b/api/v3/examples/Note/Create.ex.php index 8e3cd49991..922f9b323f 100644 --- a/api/v3/examples/Note/Create.ex.php +++ b/api/v3/examples/Note/Create.ex.php @@ -1,4 +1,9 @@ 'Test Note', ]; - try{ + try { $result = civicrm_api3('Note', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function note_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/NoteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/NoteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Note/Delete.ex.php b/api/v3/examples/Note/Delete.ex.php index cec6389e29..1065511279 100644 --- a/api/v3/examples/Note/Delete.ex.php +++ b/api/v3/examples/Note/Delete.ex.php @@ -1,4 +1,9 @@ 32, ]; - try{ + try { $result = civicrm_api3('Note', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function note_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/NoteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/NoteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Note/Get.ex.php b/api/v3/examples/Note/Get.ex.php index 17e84a67a2..487285a992 100644 --- a/api/v3/examples/Note/Get.ex.php +++ b/api/v3/examples/Note/Get.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('Note', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -49,23 +54,23 @@ function note_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/NoteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/NoteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OpenID/Create.ex.php b/api/v3/examples/OpenID/Create.ex.php index 03244878a4..8c0aba5c77 100644 --- a/api/v3/examples/OpenID/Create.ex.php +++ b/api/v3/examples/OpenID/Create.ex.php @@ -1,4 +1,9 @@ 'My OpenID handle', ]; - try{ + try { $result = civicrm_api3('OpenID', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -59,23 +64,23 @@ function open_i_d_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateOpenIDDefaultLocation" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OpenIDTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateOpenIDDefaultLocation" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OpenIDTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OpenID/Delete.ex.php b/api/v3/examples/OpenID/Delete.ex.php index 8c7318d836..76ebc15ec1 100644 --- a/api/v3/examples/OpenID/Delete.ex.php +++ b/api/v3/examples/OpenID/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('OpenID', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function open_i_d_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteOpenID" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OpenIDTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteOpenID" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OpenIDTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OpenID/Get.ex.php b/api/v3/examples/OpenID/Get.ex.php index 9a2da402ed..830af99a11 100644 --- a/api/v3/examples/OpenID/Get.ex.php +++ b/api/v3/examples/OpenID/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('OpenID', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -60,23 +65,23 @@ function open_i_d_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetOpenID" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OpenIDTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetOpenID" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OpenIDTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OptionGroup/Create.ex.php b/api/v3/examples/OptionGroup/Create.ex.php index 109b81d4d2..00b6ad591e 100644 --- a/api/v3/examples/OptionGroup/Create.ex.php +++ b/api/v3/examples/OptionGroup/Create.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetOptionCreateSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OptionGroup/Delete.ex.php b/api/v3/examples/OptionGroup/Delete.ex.php index 7871a5b8b2..a80ceafe84 100644 --- a/api/v3/examples/OptionGroup/Delete.ex.php +++ b/api/v3/examples/OptionGroup/Delete.ex.php @@ -1,4 +1,9 @@ 101, ]; - try{ + try { $result = civicrm_api3('OptionGroup', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function option_group_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteOptionGroup" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteOptionGroup" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OptionGroup/Get.ex.php b/api/v3/examples/OptionGroup/Get.ex.php index a17a22183d..3cce49a734 100644 --- a/api/v3/examples/OptionGroup/Get.ex.php +++ b/api/v3/examples/OptionGroup/Get.ex.php @@ -1,4 +1,9 @@ 'preferred_communication_method', ]; - try{ + try { $result = civicrm_api3('OptionGroup', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function option_group_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetOptionGroupByName" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetOptionGroupByName" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OptionValue/Get.ex.php b/api/v3/examples/OptionValue/Get.ex.php index f7158fc069..99ead82657 100644 --- a/api/v3/examples/OptionValue/Get.ex.php +++ b/api/v3/examples/OptionValue/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('OptionValue', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -109,23 +114,23 @@ function option_value_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetOptionGroup" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetOptionGroup" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/OptionValue/SortOption.ex.php b/api/v3/examples/OptionValue/SortOption.ex.php index ae9e2611cc..6dbad4c905 100644 --- a/api/v3/examples/OptionValue/SortOption.ex.php +++ b/api/v3/examples/OptionValue/SortOption.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSingleValueOptionValueSort" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OptionValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Order/Cancel.ex.php b/api/v3/examples/Order/Cancel.ex.php index b2d7b2364a..322d0860da 100644 --- a/api/v3/examples/Order/Cancel.ex.php +++ b/api/v3/examples/Order/Cancel.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Order', 'cancel', $params); } catch (CiviCRM_API3_Exception $e) { @@ -84,23 +89,23 @@ function order_cancel_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCancelOrder" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCancelOrder" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Order/Create.ex.php b/api/v3/examples/Order/Create.ex.php index b6aab6c532..0651545e8b 100644 --- a/api/v3/examples/Order/Create.ex.php +++ b/api/v3/examples/Order/Create.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testAddOrderForMembership" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Order/CreateOrderParticipant.ex.php b/api/v3/examples/Order/CreateOrderParticipant.ex.php index cb2fac99b5..dcfcc3b43f 100644 --- a/api/v3/examples/Order/CreateOrderParticipant.ex.php +++ b/api/v3/examples/Order/CreateOrderParticipant.ex.php @@ -1,8 +1,13 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testAddOrderForParticipant" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Order/Delete.ex.php b/api/v3/examples/Order/Delete.ex.php index 8c63b2bb6f..54828779ea 100644 --- a/api/v3/examples/Order/Delete.ex.php +++ b/api/v3/examples/Order/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Order', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -51,23 +56,23 @@ function order_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteOrder" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteOrder" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Order/Get.ex.php b/api/v3/examples/Order/Get.ex.php index c5af053154..624434f301 100644 --- a/api/v3/examples/Order/Get.ex.php +++ b/api/v3/examples/Order/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Order', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -113,23 +118,23 @@ function order_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetOrder" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetOrder" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/OrderTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Participant/Create.ex.php b/api/v3/examples/Participant/Create.ex.php index 27dd8c000d..adf8f1bb84 100644 --- a/api/v3/examples/Participant/Create.ex.php +++ b/api/v3/examples/Participant/Create.ex.php @@ -1,4 +1,9 @@ 'custom string', ]; - try{ + try { $result = civicrm_api3('Participant', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -77,23 +82,23 @@ function participant_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateWithCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateWithCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Participant/Get.ex.php b/api/v3/examples/Participant/Get.ex.php index d883a17061..4f17045af2 100644 --- a/api/v3/examples/Participant/Get.ex.php +++ b/api/v3/examples/Participant/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Participant', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -80,23 +85,23 @@ function participant_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetParamsAsIdOnly" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetParamsAsIdOnly" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Participant/NestedDelete.ex.php b/api/v3/examples/Participant/NestedDelete.ex.php index 599bf723a1..952a7e7482 100644 --- a/api/v3/examples/Participant/NestedDelete.ex.php +++ b/api/v3/examples/Participant/NestedDelete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Participant', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -124,23 +129,23 @@ function participant_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testNestedDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testNestedDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Participant/NestedEventGet.ex.php b/api/v3/examples/Participant/NestedEventGet.ex.php index 58a12c7fb8..d7b2a6ce40 100644 --- a/api/v3/examples/Participant/NestedEventGet.ex.php +++ b/api/v3/examples/Participant/NestedEventGet.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Participant', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -128,23 +133,23 @@ function participant_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetNestedEventGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetNestedEventGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ParticipantPayment/Create.ex.php b/api/v3/examples/ParticipantPayment/Create.ex.php index afb8dc3e84..c9c86bf8ad 100644 --- a/api/v3/examples/ParticipantPayment/Create.ex.php +++ b/api/v3/examples/ParticipantPayment/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('ParticipantPayment', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function participant_payment_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPaymentCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPaymentCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ParticipantPayment/Delete.ex.php b/api/v3/examples/ParticipantPayment/Delete.ex.php index fd07bbc377..ba9ac3e665 100644 --- a/api/v3/examples/ParticipantPayment/Delete.ex.php +++ b/api/v3/examples/ParticipantPayment/Delete.ex.php @@ -1,4 +1,9 @@ 6, ]; - try{ + try { $result = civicrm_api3('ParticipantPayment', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function participant_payment_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPaymentDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPaymentDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ParticipantPayment/Get.ex.php b/api/v3/examples/ParticipantPayment/Get.ex.php index c0b8e4b714..f888fe790e 100644 --- a/api/v3/examples/ParticipantPayment/Get.ex.php +++ b/api/v3/examples/ParticipantPayment/Get.ex.php @@ -1,4 +1,9 @@ 7, ]; - try{ + try { $result = civicrm_api3('ParticipantPayment', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function participant_payment_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantPaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ParticipantStatusType/Create.ex.php b/api/v3/examples/ParticipantStatusType/Create.ex.php index 474c521007..c00c9230c5 100644 --- a/api/v3/examples/ParticipantStatusType/Create.ex.php +++ b/api/v3/examples/ParticipantStatusType/Create.ex.php @@ -1,4 +1,9 @@ 10, ]; - try{ + try { $result = civicrm_api3('ParticipantStatusType', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -68,23 +73,23 @@ function participant_status_type_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetParticipantStatusType" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantStatusTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetParticipantStatusType" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantStatusTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ParticipantStatusType/Delete.ex.php b/api/v3/examples/ParticipantStatusType/Delete.ex.php index 77d001b4b5..52853e3c95 100644 --- a/api/v3/examples/ParticipantStatusType/Delete.ex.php +++ b/api/v3/examples/ParticipantStatusType/Delete.ex.php @@ -1,4 +1,9 @@ 19, ]; - try{ + try { $result = civicrm_api3('ParticipantStatusType', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function participant_status_type_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteParticipantStatusType" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantStatusTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteParticipantStatusType" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantStatusTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ParticipantStatusType/Get.ex.php b/api/v3/examples/ParticipantStatusType/Get.ex.php index 40b6e21dc2..89fcfb3c10 100644 --- a/api/v3/examples/ParticipantStatusType/Get.ex.php +++ b/api/v3/examples/ParticipantStatusType/Get.ex.php @@ -1,4 +1,9 @@ 10, ]; - try{ + try { $result = civicrm_api3('ParticipantStatusType', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -68,23 +73,23 @@ function participant_status_type_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetParticipantStatusType" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantStatusTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetParticipantStatusType" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantStatusTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Payment/Cancel.ex.php b/api/v3/examples/Payment/Cancel.ex.php index 3b20cb8820..b721140bcc 100644 --- a/api/v3/examples/Payment/Cancel.ex.php +++ b/api/v3/examples/Payment/Cancel.ex.php @@ -1,4 +1,9 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('Payment', 'cancel', $params); } catch (CiviCRM_API3_Exception $e) { @@ -66,23 +71,23 @@ function payment_cancel_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCancelPayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCancelPayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Payment/Create.ex.php b/api/v3/examples/Payment/Create.ex.php index 98fc75e877..a80d4873b6 100644 --- a/api/v3/examples/Payment/Create.ex.php +++ b/api/v3/examples/Payment/Create.ex.php @@ -1,4 +1,9 @@ 50, ]; - try{ + try { $result = civicrm_api3('Payment', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -66,23 +71,23 @@ function payment_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePaymentNoLineItems" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePaymentNoLineItems" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Payment/CreatePaymentWithLineItems.ex.php b/api/v3/examples/Payment/CreatePaymentWithLineItems.ex.php index a1351e8b02..e395d59340 100644 --- a/api/v3/examples/Payment/CreatePaymentWithLineItems.ex.php +++ b/api/v3/examples/Payment/CreatePaymentWithLineItems.ex.php @@ -1,8 +1,13 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePaymentLineItems" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Payment/Delete.ex.php b/api/v3/examples/Payment/Delete.ex.php index dea29275c0..79f58c5eed 100644 --- a/api/v3/examples/Payment/Delete.ex.php +++ b/api/v3/examples/Payment/Delete.ex.php @@ -1,4 +1,9 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('Payment', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -49,23 +54,23 @@ function payment_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Payment/Get.ex.php b/api/v3/examples/Payment/Get.ex.php index 45b2bfc958..b138cd7eb5 100644 --- a/api/v3/examples/Payment/Get.ex.php +++ b/api/v3/examples/Payment/Get.ex.php @@ -1,4 +1,9 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('Payment', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function payment_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetPayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetPayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Payment/UpdatePayment.ex.php b/api/v3/examples/Payment/UpdatePayment.ex.php index 7ac7eb09c5..a91340e6fc 100644 --- a/api/v3/examples/Payment/UpdatePayment.ex.php +++ b/api/v3/examples/Payment/UpdatePayment.ex.php @@ -1,8 +1,13 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('Payment', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -70,23 +75,23 @@ function payment_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUpdatePayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUpdatePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentProcessor/Create.ex.php b/api/v3/examples/PaymentProcessor/Create.ex.php index d3483bdb93..f96685a43d 100644 --- a/api/v3/examples/PaymentProcessor/Create.ex.php +++ b/api/v3/examples/PaymentProcessor/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('PaymentProcessor', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -79,23 +84,23 @@ function payment_processor_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPaymentProcessorCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPaymentProcessorCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentProcessor/Delete.ex.php b/api/v3/examples/PaymentProcessor/Delete.ex.php index 5c3ec5bf52..b6d274bf2b 100644 --- a/api/v3/examples/PaymentProcessor/Delete.ex.php +++ b/api/v3/examples/PaymentProcessor/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('PaymentProcessor', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function payment_processor_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPaymentProcessorDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPaymentProcessorDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentProcessorType/Create.ex.php b/api/v3/examples/PaymentProcessorType/Create.ex.php index e0baa78f23..6f6090e93d 100644 --- a/api/v3/examples/PaymentProcessorType/Create.ex.php +++ b/api/v3/examples/PaymentProcessorType/Create.ex.php @@ -1,4 +1,9 @@ 0, ]; - try{ + try { $result = civicrm_api3('PaymentProcessorType', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -80,23 +85,23 @@ function payment_processor_type_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPaymentProcessorTypeCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPaymentProcessorTypeCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentProcessorType/Delete.ex.php b/api/v3/examples/PaymentProcessorType/Delete.ex.php index e8e755d263..62072a71d1 100644 --- a/api/v3/examples/PaymentProcessorType/Delete.ex.php +++ b/api/v3/examples/PaymentProcessorType/Delete.ex.php @@ -1,4 +1,9 @@ 15, ]; - try{ + try { $result = civicrm_api3('PaymentProcessorType', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function payment_processor_type_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPaymentProcessorTypeDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPaymentProcessorTypeDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentProcessorTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentToken/Create.ex.php b/api/v3/examples/PaymentToken/Create.ex.php index 18c9c5da78..bdc24d8049 100644 --- a/api/v3/examples/PaymentToken/Create.ex.php +++ b/api/v3/examples/PaymentToken/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('PaymentToken', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function payment_token_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePaymentToken" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTokenTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePaymentToken" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTokenTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentToken/Delete.ex.php b/api/v3/examples/PaymentToken/Delete.ex.php index 84e51e4002..e27c1611a8 100644 --- a/api/v3/examples/PaymentToken/Delete.ex.php +++ b/api/v3/examples/PaymentToken/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('PaymentToken', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function payment_token_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePaymentToken" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTokenTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePaymentToken" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTokenTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PaymentToken/Get.ex.php b/api/v3/examples/PaymentToken/Get.ex.php index d08f098493..3308b71944 100644 --- a/api/v3/examples/PaymentToken/Get.ex.php +++ b/api/v3/examples/PaymentToken/Get.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('PaymentToken', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function payment_token_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetPaymentToken" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTokenTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetPaymentToken" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTokenTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pcp/ChainedGetDelete.ex.php b/api/v3/examples/Pcp/ChainedGetDelete.ex.php index c5634e4add..5bab4a14a6 100644 --- a/api/v3/examples/Pcp/ChainedGetDelete.ex.php +++ b/api/v3/examples/Pcp/ChainedGetDelete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Pcp', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -92,23 +97,23 @@ function pcp_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetPcpChainDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetPcpChainDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pcp/Create.ex.php b/api/v3/examples/Pcp/Create.ex.php index 85da4f8b9d..56aa78e395 100644 --- a/api/v3/examples/Pcp/Create.ex.php +++ b/api/v3/examples/Pcp/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Pcp', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function pcp_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePcp" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePcp" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pcp/Delete.ex.php b/api/v3/examples/Pcp/Delete.ex.php index a623f9b68a..83f1ec5677 100644 --- a/api/v3/examples/Pcp/Delete.ex.php +++ b/api/v3/examples/Pcp/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('Pcp', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function pcp_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePcp" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePcp" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pcp/Get.ex.php b/api/v3/examples/Pcp/Get.ex.php index d1f4a266a0..36246cbbbb 100644 --- a/api/v3/examples/Pcp/Get.ex.php +++ b/api/v3/examples/Pcp/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Pcp', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -67,23 +72,23 @@ function pcp_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetPcp" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetPcp" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PcpTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Phone/Create.ex.php b/api/v3/examples/Phone/Create.ex.php index 3fd8e7b230..0c055c3cd0 100644 --- a/api/v3/examples/Phone/Create.ex.php +++ b/api/v3/examples/Phone/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Phone', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function phone_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePhoneDefaultLocation" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PhoneTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePhoneDefaultLocation" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PhoneTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Phone/Delete.ex.php b/api/v3/examples/Phone/Delete.ex.php index beff5e9e33..aff2ed5ad9 100644 --- a/api/v3/examples/Phone/Delete.ex.php +++ b/api/v3/examples/Phone/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('Phone', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function phone_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePhone" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PhoneTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePhone" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PhoneTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Phone/Get.ex.php b/api/v3/examples/Phone/Get.ex.php index 57d25de2dd..e8e9d5226d 100644 --- a/api/v3/examples/Phone/Get.ex.php +++ b/api/v3/examples/Phone/Get.ex.php @@ -1,4 +1,9 @@ '(123) 456-7890', ]; - try{ + try { $result = civicrm_api3('Phone', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function phone_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PhoneTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PhoneTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Phone/GetOptions.ex.php b/api/v3/examples/Phone/GetOptions.ex.php index 3ac7d56b31..4ca5d28124 100644 --- a/api/v3/examples/Phone/GetOptions.ex.php +++ b/api/v3/examples/Phone/GetOptions.ex.php @@ -1,4 +1,9 @@ 'phone_type_id', ]; - try{ + try { $result = civicrm_api3('Phone', 'getoptions', $params); } catch (CiviCRM_API3_Exception $e) { @@ -54,23 +59,23 @@ function phone_getoptions_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPhoneType" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPhoneType" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ConstantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pledge/Create.ex.php b/api/v3/examples/Pledge/Create.ex.php index 3ffb6b2d56..81769b6971 100644 --- a/api/v3/examples/Pledge/Create.ex.php +++ b/api/v3/examples/Pledge/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Pledge', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -88,23 +93,23 @@ function pledge_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePledge" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePledge" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pledge/Delete.ex.php b/api/v3/examples/Pledge/Delete.ex.php index d11698ce1b..beb8fab405 100644 --- a/api/v3/examples/Pledge/Delete.ex.php +++ b/api/v3/examples/Pledge/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Pledge', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -51,23 +56,23 @@ function pledge_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePledgeUseID" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePledgeUseID" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pledge/Get.ex.php b/api/v3/examples/Pledge/Get.ex.php index b664e2b647..ac0ecf3d77 100644 --- a/api/v3/examples/Pledge/Get.ex.php +++ b/api/v3/examples/Pledge/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Pledge', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -74,23 +79,23 @@ function pledge_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetPledge" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetPledge" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Pledge/GetFilterHighDate.ex.php b/api/v3/examples/Pledge/GetFilterHighDate.ex.php index d7dcb34cf9..af63369e64 100644 --- a/api/v3/examples/Pledge/GetFilterHighDate.ex.php +++ b/api/v3/examples/Pledge/GetFilterHighDate.ex.php @@ -1,8 +1,13 @@ '20190818192828', ]; - try{ + try { $result = civicrm_api3('Pledge', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -76,23 +81,23 @@ function pledge_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testPledgeGetReturnFilters" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testPledgeGetReturnFilters" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PledgePayment/Create.ex.php b/api/v3/examples/PledgePayment/Create.ex.php index b2c50bfaac..354e2d545a 100644 --- a/api/v3/examples/PledgePayment/Create.ex.php +++ b/api/v3/examples/PledgePayment/Create.ex.php @@ -1,4 +1,9 @@ 20, ]; - try{ + try { $result = civicrm_api3('PledgePayment', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -66,23 +71,23 @@ function pledge_payment_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePledgePayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePledgePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PledgePayment/Delete.ex.php b/api/v3/examples/PledgePayment/Delete.ex.php index 7f5f8bb244..b3ffa0f071 100644 --- a/api/v3/examples/PledgePayment/Delete.ex.php +++ b/api/v3/examples/PledgePayment/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('PledgePayment', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -51,23 +56,23 @@ function pledge_payment_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePledgePayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePledgePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PledgePayment/Get.ex.php b/api/v3/examples/PledgePayment/Get.ex.php index 826d83948f..6c79278e9d 100644 --- a/api/v3/examples/PledgePayment/Get.ex.php +++ b/api/v3/examples/PledgePayment/Get.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetPledgePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PledgePayment/Update.ex.php b/api/v3/examples/PledgePayment/Update.ex.php index cf60c64a13..3d9f0bc215 100644 --- a/api/v3/examples/PledgePayment/Update.ex.php +++ b/api/v3/examples/PledgePayment/Update.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('PledgePayment', 'update', $params); } catch (CiviCRM_API3_Exception $e) { @@ -63,23 +68,23 @@ function pledge_payment_update_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUpdatePledgePayment" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUpdatePledgePayment" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceField/Create.ex.php b/api/v3/examples/PriceField/Create.ex.php index 05ec60e5f9..87dadf1993 100644 --- a/api/v3/examples/PriceField/Create.ex.php +++ b/api/v3/examples/PriceField/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('PriceField', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -74,23 +79,23 @@ function price_field_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePriceField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePriceField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceField/Delete.ex.php b/api/v3/examples/PriceField/Delete.ex.php index 483b6426e4..46fb4c444a 100644 --- a/api/v3/examples/PriceField/Delete.ex.php +++ b/api/v3/examples/PriceField/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('PriceField', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function price_field_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePriceField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePriceField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceField/Get.ex.php b/api/v3/examples/PriceField/Get.ex.php index 0562018818..7d02feb7dd 100644 --- a/api/v3/examples/PriceField/Get.ex.php +++ b/api/v3/examples/PriceField/Get.ex.php @@ -1,4 +1,9 @@ 'contribution_amount', ]; - try{ + try { $result = civicrm_api3('PriceField', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -64,23 +69,23 @@ function price_field_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetBasicPriceField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetBasicPriceField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceFieldValue/Create.ex.php b/api/v3/examples/PriceFieldValue/Create.ex.php index 7eb90fc41b..ea5f8c026c 100644 --- a/api/v3/examples/PriceFieldValue/Create.ex.php +++ b/api/v3/examples/PriceFieldValue/Create.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('PriceFieldValue', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -78,23 +83,23 @@ function price_field_value_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreatePriceFieldValuewithMultipleTerms" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreatePriceFieldValuewithMultipleTerms" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceFieldValue/Delete.ex.php b/api/v3/examples/PriceFieldValue/Delete.ex.php index 58af271e84..92aa1150cc 100644 --- a/api/v3/examples/PriceFieldValue/Delete.ex.php +++ b/api/v3/examples/PriceFieldValue/Delete.ex.php @@ -1,4 +1,9 @@ 7, ]; - try{ + try { $result = civicrm_api3('PriceFieldValue', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function price_field_value_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePriceFieldValue" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePriceFieldValue" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceFieldValue/Get.ex.php b/api/v3/examples/PriceFieldValue/Get.ex.php index 5889b0a7a3..4011501cf7 100644 --- a/api/v3/examples/PriceFieldValue/Get.ex.php +++ b/api/v3/examples/PriceFieldValue/Get.ex.php @@ -1,4 +1,9 @@ 'contribution_amount', ]; - try{ + try { $result = civicrm_api3('PriceFieldValue', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -64,23 +69,23 @@ function price_field_value_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetBasicPriceFieldValue" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetBasicPriceFieldValue" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceFieldValueTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceSet/Create.ex.php b/api/v3/examples/PriceSet/Create.ex.php index bb18c6768f..3955383c85 100644 --- a/api/v3/examples/PriceSet/Create.ex.php +++ b/api/v3/examples/PriceSet/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('PriceSet', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -69,23 +74,23 @@ function price_set_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testEventPriceSet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceSetTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testEventPriceSet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceSetTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceSet/Delete.ex.php b/api/v3/examples/PriceSet/Delete.ex.php index 7ad89e8168..b0c90efdca 100644 --- a/api/v3/examples/PriceSet/Delete.ex.php +++ b/api/v3/examples/PriceSet/Delete.ex.php @@ -1,4 +1,9 @@ 21, ]; - try{ + try { $result = civicrm_api3('PriceSet', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function price_set_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeletePriceSet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceSetTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeletePriceSet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceSetTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/PriceSet/Get.ex.php b/api/v3/examples/PriceSet/Get.ex.php index adfb4b89c3..cb4623e6a1 100644 --- a/api/v3/examples/PriceSet/Get.ex.php +++ b/api/v3/examples/PriceSet/Get.ex.php @@ -1,4 +1,9 @@ 'default_contribution_amount', ]; - try{ + try { $result = civicrm_api3('PriceSet', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function price_set_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetBasicPriceSet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceSetTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetBasicPriceSet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PriceSetTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Profile/Apply.ex.php b/api/v3/examples/Profile/Apply.ex.php index 54279e7b13..b94ef64b29 100644 --- a/api/v3/examples/Profile/Apply.ex.php +++ b/api/v3/examples/Profile/Apply.ex.php @@ -1,4 +1,9 @@ '1000', ]; - try{ + try { $result = civicrm_api3('Profile', 'apply', $params); } catch (CiviCRM_API3_Exception $e) { @@ -87,23 +92,23 @@ function profile_apply_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testProfileApply" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testProfileApply" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Profile/Get.ex.php b/api/v3/examples/Profile/Get.ex.php index a8f3e4f341..17c69e3ab1 100644 --- a/api/v3/examples/Profile/Get.ex.php +++ b/api/v3/examples/Profile/Get.ex.php @@ -1,4 +1,9 @@ 5, ]; - try{ + try { $result = civicrm_api3('Profile', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -85,23 +90,23 @@ function profile_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testProfileGetMultiple" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testProfileGetMultiple" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Profile/GetFields.ex.php b/api/v3/examples/Profile/GetFields.ex.php index b95c81efca..45fe926792 100644 --- a/api/v3/examples/Profile/GetFields.ex.php +++ b/api/v3/examples/Profile/GetFields.ex.php @@ -1,8 +1,13 @@ 22, ]; - try{ + try { $result = civicrm_api3('Profile', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -299,23 +304,23 @@ function profile_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetFields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Profile/Submit.ex.php b/api/v3/examples/Profile/Submit.ex.php index 3f2d700720..0677c7042b 100644 --- a/api/v3/examples/Profile/Submit.ex.php +++ b/api/v3/examples/Profile/Submit.ex.php @@ -1,4 +1,9 @@ '1000', ]; - try{ + try { $result = civicrm_api3('Profile', 'submit', $params); } catch (CiviCRM_API3_Exception $e) { @@ -108,23 +113,23 @@ function profile_submit_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testProfileSubmit" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testProfileSubmit" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ProfileTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Relationship/BetweenRelationshipType.ex.php b/api/v3/examples/Relationship/BetweenRelationshipType.ex.php index 949b9765b3..5344b7b57c 100644 --- a/api/v3/examples/Relationship/BetweenRelationshipType.ex.php +++ b/api/v3/examples/Relationship/BetweenRelationshipType.ex.php @@ -1,4 +1,9 @@ 'note', ]; - try{ + try { $result = civicrm_api3('Relationship', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -69,23 +74,23 @@ function relationship_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testRelationshipCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testRelationshipCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Relationship/Delete.ex.php b/api/v3/examples/Relationship/Delete.ex.php index 081973a304..745cae5504 100644 --- a/api/v3/examples/Relationship/Delete.ex.php +++ b/api/v3/examples/Relationship/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Relationship', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function relationship_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testRelationshipDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testRelationshipDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Relationship/Get.ex.php b/api/v3/examples/Relationship/Get.ex.php index b533076a16..6e16756334 100644 --- a/api/v3/examples/Relationship/Get.ex.php +++ b/api/v3/examples/Relationship/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Relationship', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -62,23 +67,23 @@ function relationship_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetWithCustom" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-master-git/ -* -* To Learn about the API read -* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API -* -* Browse the api on your own site with the api explorer -* http://MYSITE.ORG/path/to/civicrm/api -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetWithCustom" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-master-git/ + * + * To Learn about the API read + * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API + * + * Browse the api on your own site with the api explorer + * http://MYSITE.ORG/path/to/civicrm/api + * + * Read more about testing here + * http://wiki.civicrm.org/confluence/display/CRM/Testing + * + * API Standards documentation: + * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards + */ diff --git a/api/v3/examples/Relationship/INRelationshipType.ex.php b/api/v3/examples/Relationship/INRelationshipType.ex.php index 4a323b43a3..6274c2d2fa 100644 --- a/api/v3/examples/Relationship/INRelationshipType.ex.php +++ b/api/v3/examples/Relationship/INRelationshipType.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('RelationshipType', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -70,23 +75,23 @@ function relationship_type_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testRelationshipTypeCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testRelationshipTypeCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/RelationshipType/Delete.ex.php b/api/v3/examples/RelationshipType/Delete.ex.php index 4f2afdd612..23c3ea9245 100644 --- a/api/v3/examples/RelationshipType/Delete.ex.php +++ b/api/v3/examples/RelationshipType/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('RelationshipType', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function relationship_type_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testRelationshipTypeDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTypeTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testRelationshipTypeDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/RelationshipTypeTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ReportTemplate/Getrows.ex.php b/api/v3/examples/ReportTemplate/Getrows.ex.php index 97e0948a9d..794d96f552 100644 --- a/api/v3/examples/ReportTemplate/Getrows.ex.php +++ b/api/v3/examples/ReportTemplate/Getrows.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testReportTemplateGetRowsMailingUniqueOpened" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ReportTemplateTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/ReportTemplate/Getstatistics.ex.php b/api/v3/examples/ReportTemplate/Getstatistics.ex.php index 40f22af22b..69bfe6f9c5 100644 --- a/api/v3/examples/ReportTemplate/Getstatistics.ex.php +++ b/api/v3/examples/ReportTemplate/Getstatistics.ex.php @@ -1,4 +1,9 @@ 'contribute/deferredrevenue', ]; - try{ + try { $result = civicrm_api3('ReportTemplate', 'getstatistics', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function report_template_getstatistics_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testReportTemplateGetStatisticsAllReports" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ReportTemplateTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testReportTemplateGetStatisticsAllReports" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ReportTemplateTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/SavedSearch/Create.ex.php b/api/v3/examples/SavedSearch/Create.ex.php index 8edb9f8a62..0ebc6f040a 100644 --- a/api/v3/examples/SavedSearch/Create.ex.php +++ b/api/v3/examples/SavedSearch/Create.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSavedSearchWithSmartGroup" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SavedSearchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/SavedSearch/Delete.ex.php b/api/v3/examples/SavedSearch/Delete.ex.php index 00bbed7150..c2ef3c09ed 100644 --- a/api/v3/examples/SavedSearch/Delete.ex.php +++ b/api/v3/examples/SavedSearch/Delete.ex.php @@ -1,4 +1,9 @@ 4, ]; - try{ + try { $result = civicrm_api3('SavedSearch', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function saved_search_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteSavedSearch" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SavedSearchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteSavedSearch" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SavedSearchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/SavedSearch/Get.ex.php b/api/v3/examples/SavedSearch/Get.ex.php index 302240797a..d61a1f57e8 100644 --- a/api/v3/examples/SavedSearch/Get.ex.php +++ b/api/v3/examples/SavedSearch/Get.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('SavedSearch', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -57,23 +62,23 @@ function saved_search_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateAndGetSavedSearch" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SavedSearchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateAndGetSavedSearch" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SavedSearchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/Create.ex.php b/api/v3/examples/Setting/Create.ex.php index fc2b6b9bf2..103d282017 100644 --- a/api/v3/examples/Setting/Create.ex.php +++ b/api/v3/examples/Setting/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Setting', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -54,23 +59,23 @@ function setting_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSetting" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSetting" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/CreateAllDomains.ex.php b/api/v3/examples/Setting/CreateAllDomains.ex.php index d25e161045..649f904ce7 100644 --- a/api/v3/examples/Setting/CreateAllDomains.ex.php +++ b/api/v3/examples/Setting/CreateAllDomains.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Setting', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function setting_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSettingMultipleDomains" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSettingMultipleDomains" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/CreateSettingCurrentDomain.ex.php b/api/v3/examples/Setting/CreateSettingCurrentDomain.ex.php index 038295ee25..13d5f90554 100644 --- a/api/v3/examples/Setting/CreateSettingCurrentDomain.ex.php +++ b/api/v3/examples/Setting/CreateSettingCurrentDomain.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Setting', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -55,23 +60,23 @@ function setting_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSetting" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSetting" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/CreateSpecifiedDomains.ex.php b/api/v3/examples/Setting/CreateSpecifiedDomains.ex.php index d344556e71..40c34b4fe9 100644 --- a/api/v3/examples/Setting/CreateSpecifiedDomains.ex.php +++ b/api/v3/examples/Setting/CreateSpecifiedDomains.ex.php @@ -1,4 +1,9 @@ 0, ]; - try{ + try { $result = civicrm_api3('Setting', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function setting_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSettingMultipleDomains" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSettingMultipleDomains" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/Get.ex.php b/api/v3/examples/Setting/Get.ex.php index d25be60d68..90535d41bd 100644 --- a/api/v3/examples/Setting/Get.ex.php +++ b/api/v3/examples/Setting/Get.ex.php @@ -1,4 +1,9 @@ 'uniq_email_per_site', ]; - try{ + try { $result = civicrm_api3('Setting', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -54,23 +59,23 @@ function setting_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetSetting" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSetting" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/GetAllDomains.ex.php b/api/v3/examples/Setting/GetAllDomains.ex.php index 7a0f6b26f1..d8323fcfec 100644 --- a/api/v3/examples/Setting/GetAllDomains.ex.php +++ b/api/v3/examples/Setting/GetAllDomains.ex.php @@ -1,4 +1,9 @@ 'uniq_email_per_site', ]; - try{ + try { $result = civicrm_api3('Setting', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function setting_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSettingMultipleDomains" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSettingMultipleDomains" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/GetDefaults.ex.php b/api/v3/examples/Setting/GetDefaults.ex.php index cda1629a63..a721feaf0a 100644 --- a/api/v3/examples/Setting/GetDefaults.ex.php +++ b/api/v3/examples/Setting/GetDefaults.ex.php @@ -1,4 +1,9 @@ 'address_format', ]; - try{ + try { $result = civicrm_api3('Setting', 'getdefaults', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function setting_getdefaults_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetDefaults" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetDefaults" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/GetFields.ex.php b/api/v3/examples/Setting/GetFields.ex.php index 2c128b70d8..b74ba723dd 100644 --- a/api/v3/examples/Setting/GetFields.ex.php +++ b/api/v3/examples/Setting/GetFields.ex.php @@ -1,8 +1,13 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/GetSettingCurrentDomain.ex.php b/api/v3/examples/Setting/GetSettingCurrentDomain.ex.php index bc808c71ef..2939c09a99 100644 --- a/api/v3/examples/Setting/GetSettingCurrentDomain.ex.php +++ b/api/v3/examples/Setting/GetSettingCurrentDomain.ex.php @@ -1,4 +1,9 @@ 'uniq_email_per_site', ]; - try{ + try { $result = civicrm_api3('Setting', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -55,23 +60,23 @@ function setting_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetSetting" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSetting" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/GetSpecifiedDomains.ex.php b/api/v3/examples/Setting/GetSpecifiedDomains.ex.php index 1257cc53de..5013a7a61b 100644 --- a/api/v3/examples/Setting/GetSpecifiedDomains.ex.php +++ b/api/v3/examples/Setting/GetSpecifiedDomains.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSettingMultipleDomains" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/GetValue.ex.php b/api/v3/examples/Setting/GetValue.ex.php index ef75b6a9e9..7a5cb0f22f 100644 --- a/api/v3/examples/Setting/GetValue.ex.php +++ b/api/v3/examples/Setting/GetValue.ex.php @@ -1,4 +1,9 @@ 'Campaign Preferences', ]; - try{ + try { $result = civicrm_api3('Setting', 'getvalue', $params); } catch (CiviCRM_API3_Exception $e) { @@ -46,23 +51,23 @@ function setting_getvalue_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetValue" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetValue" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Setting/Revert.ex.php b/api/v3/examples/Setting/Revert.ex.php index 7535db2a82..070211dfe9 100644 --- a/api/v3/examples/Setting/Revert.ex.php +++ b/api/v3/examples/Setting/Revert.ex.php @@ -1,4 +1,9 @@ 'address_format', ]; - try{ + try { $result = civicrm_api3('Setting', 'revert', $params); } catch (CiviCRM_API3_Exception $e) { @@ -67,23 +72,23 @@ function setting_revert_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testRevert" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testRevert" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/StateProvince/Create.ex.php b/api/v3/examples/StateProvince/Create.ex.php index d2a3e6c487..138cf073f7 100644 --- a/api/v3/examples/StateProvince/Create.ex.php +++ b/api/v3/examples/StateProvince/Create.ex.php @@ -1,4 +1,9 @@ 1226, ]; - try{ + try { $result = civicrm_api3('StateProvince', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function state_province_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateStateProvince" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StateProvinceTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateStateProvince" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StateProvinceTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/StateProvince/Delete.ex.php b/api/v3/examples/StateProvince/Delete.ex.php index 9628de2efb..399b374b2f 100644 --- a/api/v3/examples/StateProvince/Delete.ex.php +++ b/api/v3/examples/StateProvince/Delete.ex.php @@ -1,4 +1,9 @@ 14034, ]; - try{ + try { $result = civicrm_api3('StateProvince', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function state_province_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteStateProvince" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StateProvinceTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteStateProvince" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StateProvinceTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/StateProvince/Get.ex.php b/api/v3/examples/StateProvince/Get.ex.php index 3d3508aadc..db65af930d 100644 --- a/api/v3/examples/StateProvince/Get.ex.php +++ b/api/v3/examples/StateProvince/Get.ex.php @@ -1,4 +1,9 @@ 'Wessex', ]; - try{ + try { $result = civicrm_api3('StateProvince', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function state_province_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StateProvinceTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StateProvinceTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/StatusPreference/Create.ex.php b/api/v3/examples/StatusPreference/Create.ex.php index a18cc05451..418e9bd846 100644 --- a/api/v3/examples/StatusPreference/Create.ex.php +++ b/api/v3/examples/StatusPreference/Create.ex.php @@ -1,4 +1,9 @@ '', ]; - try{ + try { $result = civicrm_api3('StatusPreference', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -63,23 +68,23 @@ function status_preference_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSeverityByName" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StatusPreferenceTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSeverityByName" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StatusPreferenceTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/StatusPreference/Delete.ex.php b/api/v3/examples/StatusPreference/Delete.ex.php index 3a7916de06..3407426e8d 100644 --- a/api/v3/examples/StatusPreference/Delete.ex.php +++ b/api/v3/examples/StatusPreference/Delete.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('StatusPreference', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function status_preference_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteStatusPreference" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StatusPreferenceTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteStatusPreference" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StatusPreferenceTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/StatusPreference/Get.ex.php b/api/v3/examples/StatusPreference/Get.ex.php index 63c7503263..4b42a89656 100644 --- a/api/v3/examples/StatusPreference/Get.ex.php +++ b/api/v3/examples/StatusPreference/Get.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('StatusPreference', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -57,23 +62,23 @@ function status_preference_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testStatusPreferenceGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StatusPreferenceTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testStatusPreferenceGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/StatusPreferenceTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Survey/ChainedGetDelete.ex.php b/api/v3/examples/Survey/ChainedGetDelete.ex.php index a0b99eaede..df1218be8b 100644 --- a/api/v3/examples/Survey/ChainedGetDelete.ex.php +++ b/api/v3/examples/Survey/ChainedGetDelete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Survey', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -71,23 +76,23 @@ function survey_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetSurveyChainDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSurveyChainDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Survey/Create.ex.php b/api/v3/examples/Survey/Create.ex.php index 98ef5d3247..3dce012bd7 100644 --- a/api/v3/examples/Survey/Create.ex.php +++ b/api/v3/examples/Survey/Create.ex.php @@ -1,4 +1,9 @@ 'Call people, ask for money', ]; - try{ + try { $result = civicrm_api3('Survey', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -75,23 +80,23 @@ function survey_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSurvey" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSurvey" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Survey/Delete.ex.php b/api/v3/examples/Survey/Delete.ex.php index af49e79597..1cfe8ea9e4 100644 --- a/api/v3/examples/Survey/Delete.ex.php +++ b/api/v3/examples/Survey/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Survey', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function survey_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteSurvey" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteSurvey" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Survey/Get.ex.php b/api/v3/examples/Survey/Get.ex.php index a175e1473f..7dac9efd14 100644 --- a/api/v3/examples/Survey/Get.ex.php +++ b/api/v3/examples/Survey/Get.ex.php @@ -1,4 +1,9 @@ 'Call people, ask for money', ]; - try{ + try { $result = civicrm_api3('Survey', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function survey_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetSurvey" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSurvey" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/SurveyRespondant/Get.ex.php b/api/v3/examples/SurveyRespondant/Get.ex.php index e54521f3aa..2e93c13aad 100644 --- a/api/v3/examples/SurveyRespondant/Get.ex.php +++ b/api/v3/examples/SurveyRespondant/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('SurveyRespondant', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -53,23 +58,23 @@ function survey_respondant_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetSurveyRespondants" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyRespondantTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetSurveyRespondants" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyRespondantTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/System/Flush.ex.php b/api/v3/examples/System/Flush.ex.php index 34b2ce28f4..a5323b45fb 100644 --- a/api/v3/examples/System/Flush.ex.php +++ b/api/v3/examples/System/Flush.ex.php @@ -1,8 +1,13 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testFlush" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SystemTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Tag/Create.ex.php b/api/v3/examples/Tag/Create.ex.php index 3905455770..3357866e45 100644 --- a/api/v3/examples/Tag/Create.ex.php +++ b/api/v3/examples/Tag/Create.ex.php @@ -1,4 +1,9 @@ 'Outside undie-wearers', ]; - try{ + try { $result = civicrm_api3('Tag', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -64,23 +69,23 @@ function tag_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Tag/Delete.ex.php b/api/v3/examples/Tag/Delete.ex.php index 2f8867db1f..2371cb6039 100644 --- a/api/v3/examples/Tag/Delete.ex.php +++ b/api/v3/examples/Tag/Delete.ex.php @@ -1,4 +1,9 @@ '24', ]; - try{ + try { $result = civicrm_api3('Tag', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function tag_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testTagDeleteCorrectSyntax" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testTagDeleteCorrectSyntax" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Tag/Get.ex.php b/api/v3/examples/Tag/Get.ex.php index c3d91f9dc2..ace87a8763 100644 --- a/api/v3/examples/Tag/Get.ex.php +++ b/api/v3/examples/Tag/Get.ex.php @@ -1,4 +1,9 @@ 'New Tag3', ]; - try{ + try { $result = civicrm_api3('Tag', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function tag_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Tag/GetFields.ex.php b/api/v3/examples/Tag/GetFields.ex.php index acf9b173f7..fb280ca8b8 100644 --- a/api/v3/examples/Tag/GetFields.ex.php +++ b/api/v3/examples/Tag/GetFields.ex.php @@ -1,4 +1,9 @@ 'create', ]; - try{ + try { $result = civicrm_api3('Tag', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -213,23 +218,23 @@ function tag_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testTagGetfields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testTagGetfields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Tag/GetList.ex.php b/api/v3/examples/Tag/GetList.ex.php index a1fc219534..23aa5c33b1 100644 --- a/api/v3/examples/Tag/GetList.ex.php +++ b/api/v3/examples/Tag/GetList.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testTagGetList" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Tag/GetReturnArray.ex.php b/api/v3/examples/Tag/GetReturnArray.ex.php index 88bb104708..9ccbb63fa1 100644 --- a/api/v3/examples/Tag/GetReturnArray.ex.php +++ b/api/v3/examples/Tag/GetReturnArray.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetReturnArray" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TagTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/TaxContributionPage/Create.ex.php b/api/v3/examples/TaxContributionPage/Create.ex.php index 850ab57997..5dd5d4fcd2 100644 --- a/api/v3/examples/TaxContributionPage/Create.ex.php +++ b/api/v3/examples/TaxContributionPage/Create.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('tax_contribution_page', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -92,7 +97,7 @@ function tax_contribution_page_create_expectedresult() { * The test that created it is called * testCreateContributionPendingOnline * and can be found in -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TaxContributionPageTest.php +* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TaxContributionPageTest.php. * * You can see the outcome of the API tests at * https://test.civicrm.org/job/CiviCRM-master-git/ diff --git a/api/v3/examples/TaxContributionPage/CreateWithNestedLineItems.ex.php b/api/v3/examples/TaxContributionPage/CreateWithNestedLineItems.ex.php index e6b6217e9d..fe1b5a8af7 100644 --- a/api/v3/examples/TaxContributionPage/CreateWithNestedLineItems.ex.php +++ b/api/v3/examples/TaxContributionPage/CreateWithNestedLineItems.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('tax_contribution_page', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -54,7 +59,7 @@ function tax_contribution_page_delete_expectedresult() { * The test that created it is called * testDeleteContribution * and can be found in -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TaxContributionPageTest.php +* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/TaxContributionPageTest.php. * * You can see the outcome of the API tests at * https://test.civicrm.org/job/CiviCRM-master-git/ diff --git a/api/v3/examples/UFField/Create.ex.php b/api/v3/examples/UFField/Create.ex.php index a4eb8f0eed..947797d36f 100644 --- a/api/v3/examples/UFField/Create.ex.php +++ b/api/v3/examples/UFField/Create.ex.php @@ -1,4 +1,9 @@ 11, ]; - try{ + try { $result = civicrm_api3('UFField', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -80,23 +85,23 @@ function uf_field_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateUFField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateUFField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFField/Delete.ex.php b/api/v3/examples/UFField/Delete.ex.php index b25806af75..95ef1f9063 100644 --- a/api/v3/examples/UFField/Delete.ex.php +++ b/api/v3/examples/UFField/Delete.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('UFField', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function uf_field_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteUFField" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteUFField" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFField/Get.ex.php b/api/v3/examples/UFField/Get.ex.php index fc537cc71d..2d8cf63484 100644 --- a/api/v3/examples/UFField/Get.ex.php +++ b/api/v3/examples/UFField/Get.ex.php @@ -1,4 +1,9 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetUFFieldSuccess" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFField/Replace.ex.php b/api/v3/examples/UFField/Replace.ex.php index f0230b225e..4bad961e70 100644 --- a/api/v3/examples/UFField/Replace.ex.php +++ b/api/v3/examples/UFField/Replace.ex.php @@ -1,4 +1,9 @@ TRUE, ]; - try{ + try { $result = civicrm_api3('UFField', 'replace', $params); } catch (CiviCRM_API3_Exception $e) { @@ -146,23 +151,23 @@ function uf_field_replace_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testReplaceUFFields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testReplaceUFFields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFGroup/Create.ex.php b/api/v3/examples/UFGroup/Create.ex.php index f4096f2ac1..879d513ec2 100644 --- a/api/v3/examples/UFGroup/Create.ex.php +++ b/api/v3/examples/UFGroup/Create.ex.php @@ -1,4 +1,9 @@ 'Test Group', ]; - try{ + try { $result = civicrm_api3('UFGroup', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -98,23 +103,23 @@ function uf_group_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUFGroupCreate" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUFGroupCreate" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFGroup/Delete.ex.php b/api/v3/examples/UFGroup/Delete.ex.php index b5560002db..b25743455a 100644 --- a/api/v3/examples/UFGroup/Delete.ex.php +++ b/api/v3/examples/UFGroup/Delete.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('UFGroup', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function uf_group_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUFGroupDelete" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUFGroupDelete" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFGroup/Get.ex.php b/api/v3/examples/UFGroup/Get.ex.php index e7abf95562..fc4d018ae3 100644 --- a/api/v3/examples/UFGroup/Get.ex.php +++ b/api/v3/examples/UFGroup/Get.ex.php @@ -1,4 +1,9 @@ 2, ]; - try{ + try { $result = civicrm_api3('UFGroup', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -75,23 +80,23 @@ function uf_group_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUFGroupGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUFGroupGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFJoin/Create.ex.php b/api/v3/examples/UFJoin/Create.ex.php index 4b388f10ac..b0244edbe9 100644 --- a/api/v3/examples/UFJoin/Create.ex.php +++ b/api/v3/examples/UFJoin/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('UFJoin', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -66,23 +71,23 @@ function uf_join_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateSurveyUFJoin" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFJoinTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateSurveyUFJoin" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFJoinTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFJoin/Get.ex.php b/api/v3/examples/UFJoin/Get.ex.php index 88246c4694..08f3ca6443 100644 --- a/api/v3/examples/UFJoin/Get.ex.php +++ b/api/v3/examples/UFJoin/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('UFJoin', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -61,23 +66,23 @@ function uf_join_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetUFJoinId" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFJoinTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetUFJoinId" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFJoinTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/UFMatch/Get.ex.php b/api/v3/examples/UFMatch/Get.ex.php index 9f68b0c692..8b87d90e44 100644 --- a/api/v3/examples/UFMatch/Get.ex.php +++ b/api/v3/examples/UFMatch/Get.ex.php @@ -1,4 +1,9 @@ 69, ]; - try{ + try { $result = civicrm_api3('UFMatch', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function uf_match_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetUFID" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFMatchTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetUFID" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFMatchTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/User/Get.ex.php b/api/v3/examples/User/Get.ex.php index 9c71f5b1b8..92cc07edd2 100644 --- a/api/v3/examples/User/Get.ex.php +++ b/api/v3/examples/User/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('User', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -56,23 +61,23 @@ function user_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testUserGet" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UserTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testUserGet" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UserTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/User/GetFields.ex.php b/api/v3/examples/User/GetFields.ex.php index d390e46af1..4df70c6922 100644 --- a/api/v3/examples/User/GetFields.ex.php +++ b/api/v3/examples/User/GetFields.ex.php @@ -1,4 +1,9 @@ 'get', ]; - try{ + try { $result = civicrm_api3('User', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -65,23 +70,23 @@ function user_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetFields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UserTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UserTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Website/Create.ex.php b/api/v3/examples/Website/Create.ex.php index 66874a2227..ba17211e96 100644 --- a/api/v3/examples/Website/Create.ex.php +++ b/api/v3/examples/Website/Create.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Website', 'create', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function website_create_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testCreateWebsite" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testCreateWebsite" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Website/Delete.ex.php b/api/v3/examples/Website/Delete.ex.php index 4a0d85693b..478c1a3334 100644 --- a/api/v3/examples/Website/Delete.ex.php +++ b/api/v3/examples/Website/Delete.ex.php @@ -1,4 +1,9 @@ 3, ]; - try{ + try { $result = civicrm_api3('Website', 'delete', $params); } catch (CiviCRM_API3_Exception $e) { @@ -48,23 +53,23 @@ function website_delete_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testDeleteWebsite" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testDeleteWebsite" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Website/Get.ex.php b/api/v3/examples/Website/Get.ex.php index 4c2470c789..66451f7ad1 100644 --- a/api/v3/examples/Website/Get.ex.php +++ b/api/v3/examples/Website/Get.ex.php @@ -1,4 +1,9 @@ 1, ]; - try{ + try { $result = civicrm_api3('Website', 'get', $params); } catch (CiviCRM_API3_Exception $e) { @@ -58,23 +63,23 @@ function website_get_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetWebsite" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetWebsite" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Website/GetFields.ex.php b/api/v3/examples/Website/GetFields.ex.php index a4a5f78056..b44b4f8ed9 100644 --- a/api/v3/examples/Website/GetFields.ex.php +++ b/api/v3/examples/Website/GetFields.ex.php @@ -1,4 +1,9 @@ 'get', ]; - try{ + try { $result = civicrm_api3('Website', 'getfields', $params); } catch (CiviCRM_API3_Exception $e) { @@ -123,23 +128,23 @@ function website_getfields_expectedresult() { } /* -* This example has been generated from the API test suite. -* The test that created it is called "testGetFields" -* and can be found at: -* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php -* -* You can see the outcome of the API tests at -* https://test.civicrm.org/job/CiviCRM-Core-Matrix/ -* -* To Learn about the API read -* https://docs.civicrm.org/dev/en/latest/api/ -* -* Browse the API on your own site with the API Explorer. It is in the main -* CiviCRM menu, under: Support > Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetFields" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ diff --git a/api/v3/examples/Website/GetWithMetadata.ex.php b/api/v3/examples/Website/GetWithMetadata.ex.php index 2cf480b8f2..05e817d03d 100644 --- a/api/v3/examples/Website/GetWithMetadata.ex.php +++ b/api/v3/examples/Website/GetWithMetadata.ex.php @@ -1,8 +1,13 @@ Development > API Explorer. -* -* Read more about testing here -* https://docs.civicrm.org/dev/en/latest/testing/ -* -* API Standards documentation: -* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ -*/ + * This example has been generated from the API test suite. + * The test that created it is called "testGetMetadata" + * and can be found at: + * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/WebsiteTest.php + * + * You can see the outcome of the API tests at + * https://test.civicrm.org/job/CiviCRM-Core-Matrix/ + * + * To Learn about the API read + * https://docs.civicrm.org/dev/en/latest/api/ + * + * Browse the API on your own site with the API Explorer. It is in the main + * CiviCRM menu, under: Support > Development > API Explorer. + * + * Read more about testing here + * https://docs.civicrm.org/dev/en/latest/testing/ + * + * API Standards documentation: + * https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ + */ -- 2.25.1