CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Event / Get.php
index 19023b608fe953775a85e7379d00e56267c30ce7..5892efb6362174b4faffd6fa0aa06ae96187c38f 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using event get API.
- *
+ * Test Generated example demonstrating the Event.get API.
  *
  * @return array
  *   API result array
@@ -13,7 +12,7 @@ function event_get_example() {
   );
 
   try{
-    $result = civicrm_api3('event', 'get', $params);
+    $result = civicrm_api3('Event', 'get', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -76,11 +75,10 @@ function event_get_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testGetEventByEventTitle
-* and can be found in
+* The test that created it is called "testGetEventByEventTitle"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/EventTest.php
 *
 * You can see the outcome of the API tests at
@@ -90,7 +88,7 @@ function event_get_expectedresult() {
 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
 *
 * Browse the api on your own site with the api explorer
-* http://MYSITE.ORG/path/to/civicrm/api/explorer
+* http://MYSITE.ORG/path/to/civicrm/api
 *
 * Read more about testing here
 * http://wiki.civicrm.org/confluence/display/CRM/Testing