Merge remote-tracking branch 'origin/4.5' into 4.5-master-2015-02-24-17-24-05
[civicrm-core.git] / api / v3 / examples / Contact / APIChainedArray.php
index 5c78e3cb6a48d7a2b2d6935f83568a3f8d9d3265..fe8e67a331905c077e577e045a42f40791d0c9ac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using contact get API.
+ * Test Generated example demonstrating the Contact.get API.
  *
  * This demonstrates the usage of chained api functions.
  * In this case no notes or custom fields have been created.
@@ -20,7 +20,7 @@ function contact_get_example() {
   );
 
   try{
-    $result = civicrm_api3('contact', 'get', $params);
+    $result = civicrm_api3('Contact', 'get', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -207,11 +207,10 @@ function contact_get_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testGetIndividualWithChainedArrays
-* and can be found in
+* 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