function report_template_getrows_example(){
$params = array(
'report_id' => 'contact/summary',
+ 'options' => array(
+ 'metadata' => array(
+ '0' => 'labels',
+ '1' => 'title',
+ ),
+ ),
);
try{
'civicrm_country_name' => 'United States',
),
),
+ 'metadata' => array(
+ 'title' => 'ERROR: Title is not Set',
+ 'labels' => array(
+ 'civicrm_contact_sort_name' => 'Contact Name',
+ 'civicrm_contact_id' => 'Internal Contact ID',
+ 'civicrm_address_street_address' => 'Street Address',
+ 'civicrm_address_city' => 'City',
+ 'civicrm_country_name' => 'Country',
+ ),
+ ),
);
return $expectedResult;
* This example has been generated from the API test suite. The test that created it is called
*
* testReportTemplateGetRowsContactSummary and can be found in
-* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ReportTemplateTest.php
+* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ReportTemplateTest.php
*
* You can see the outcome of the API tests at
-* http://tests.dev.civicrm.org/trunk/results-api_v3
+* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
-* http://book.civicrm.org/developer/current/techniques/api/
+* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
-* and review the wiki at
-* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
+* Browse the api on your own site with the api explorer
+* http://MYSITE.ORG/path/to/civicrm/api/explorer
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing