1 {literal}<?php{/literal}
6 function {$function}_example(){literal}{{/literal}
7 $params = {$params|@print_array};
9 $result = civicrm_api( '{$fnPrefix}','{$action}',$params );
15 * Function returns array of result expected from previous function
17 function {$function}_expectedresult(){literal}{{/literal}
19 $expectedResult = {$result|@print_array};
21 return $expectedResult ;
26 * This example has been generated from the API test suite. The test that created it is called
28 * {$testfunction} and can be found in
29 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/{$filename}
31 * You can see the outcome of the API tests at
32 * http://tests.dev.civicrm.org/trunk/results-api_v3
34 * To Learn about the API read
35 * http://book.civicrm.org/developer/current/techniques/api/
37 * and review the wiki at
38 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
40 * Read more about testing here
41 * http://wiki.civicrm.org/confluence/display/CRM/Testing
43 * API Standards documentation:
44 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards