CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Event / Get.php
index cf68137c7af1d3de8d20069d6f70f8751e71b9a6..5892efb6362174b4faffd6fa0aa06ae96187c38f 100644 (file)
@@ -1,13 +1,6 @@
 <?php
 /**
- * @file
- * Test Generated API Example.
- * See bottom of this file for more detail.
- */
-
-/**
- * Test Generated example of using event get API.
- *
+ * Test Generated example demonstrating the Event.get API.
  *
  * @return array
  *   API result array
@@ -19,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.
@@ -82,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
@@ -96,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