af057792cd619dfb7a7b3cb73227463c3cd1242c
6 function batch_update_example(){
8 'name' => 'New_Batch_04',
9 'title' => 'New Batch 04',
10 'description' => 'This is description for New Batch 04',
17 $result = civicrm_api( 'batch','update',$params );
23 * Function returns array of result expected from previous function
25 function batch_update_expectedresult(){
27 $expectedResult = array(
35 'name' => 'New_Batch_04',
36 'title' => 'New Batch 04',
37 'description' => 'This is description for New Batch 04',
41 'modified_date' => '2012-11-14 16:02:35',
42 'saved_search_id' => '',
48 'payment_instrument_id' => '',
49 'exported_date' => '',
54 return $expectedResult ;
59 * This example has been generated from the API test suite. The test that created it is called
61 * testUpdate and can be found in
62 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/BatchTest.php
64 * You can see the outcome of the API tests at
65 * http://tests.dev.civicrm.org/trunk/results-api_v3
67 * To Learn about the API read
68 * http://book.civicrm.org/developer/current/techniques/api/
70 * and review the wiki at
71 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
73 * Read more about testing here
74 * http://wiki.civicrm.org/confluence/display/CRM/Testing
76 * API Standards documentation:
77 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards