6 function event_get_example(){
8 'event_title' => 'Annual CiviCRM meet',
12 $result = civicrm_api( 'event','get',$params );
18 * Function returns array of result expected from previous function
20 function event_get_expectedresult(){
22 $expectedResult = array(
30 'title' => 'Annual CiviCRM meet',
31 'event_title' => 'Annual CiviCRM meet',
32 'event_type_id' => '1',
33 'participant_listing_id' => 0,
35 'start_date' => '2008-10-21 00:00:00',
36 'event_start_date' => '2008-10-21 00:00:00',
37 'is_online_registration' => 0,
41 'is_show_location' => '1',
42 'default_role_id' => '1',
43 'is_email_confirm' => 0,
45 'is_partial_payment' => 0,
46 'is_multiple_registrations' => 0,
47 'allow_same_participant_emails' => 0,
49 'created_date' => '2013-02-04 22:31:22',
55 return $expectedResult ;
60 * This example has been generated from the API test suite. The test that created it is called
62 * testGetEventByEventTitle and can be found in
63 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/EventTest.php
65 * You can see the outcome of the API tests at
66 * http://tests.dev.civicrm.org/trunk/results-api_v3
68 * To Learn about the API read
69 * http://book.civicrm.org/developer/current/techniques/api/
71 * and review the wiki at
72 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
74 * Read more about testing here
75 * http://wiki.civicrm.org/confluence/display/CRM/Testing
77 * API Standards documentation:
78 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards