6 function activity_type_get_example(){
11 $result = civicrm_api( 'activity_type','get',$params );
17 * Function returns array of result expected from previous function
19 function activity_type_get_expectedresult(){
21 $expectedResult = array(
29 '4' => 'Text Message (SMS)',
30 '5' => 'Event Registration',
31 '6' => 'Contribution',
32 '7' => 'Membership Signup',
33 '8' => 'Membership Renewal',
34 '9' => 'Tell a Friend',
35 '10' => 'Pledge Acknowledgment',
36 '11' => 'Pledge Reminder',
37 '12' => 'Inbound Email',
40 '15' => 'Change Case Type',
41 '16' => 'Change Case Status',
42 '17' => 'Membership Renewal Reminder',
43 '18' => 'Change Case Start Date',
45 '20' => 'Assign Case Role',
46 '21' => 'Remove Case Role',
47 '22' => 'Print PDF Letter',
49 '24' => 'Reassigned Case',
51 '26' => 'Change Case Tags',
52 '27' => 'Add Client To Case',
57 '32' => 'Petition Signature',
58 '33' => 'Change Custom Data',
60 '35' => 'Change Membership Status',
61 '36' => 'Change Membership Type',
62 '37' => 'Cancel Recurring Contribution',
63 '38' => 'Update Recurring Contribution Billing Details',
64 '39' => 'Update Recurring Contribution',
65 '40' => 'Reminder Sent',
66 '41' => 'Export Accounting Batch',
67 '42' => 'Create Batch',
69 '44' => 'Test activity type',
73 return $expectedResult ;
78 * This example has been generated from the API test suite. The test that created it is called
80 * testActivityTypeGet and can be found in
81 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ActivityTypeTest.php
83 * You can see the outcome of the API tests at
84 * http://tests.dev.civicrm.org/trunk/results-api_v3
86 * To Learn about the API read
87 * http://book.civicrm.org/developer/current/techniques/api/
89 * and review the wiki at
90 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
92 * Read more about testing here
93 * http://wiki.civicrm.org/confluence/display/CRM/Testing
95 * API Standards documentation:
96 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards