6 function event_get_example(){
8 'event_title' => 'Annual CiviCRM meet',
14 $result = civicrm_api( 'event','get',$params );
20 * Function returns array of result expected from previous function
22 function event_get_expectedresult(){
24 $expectedResult = array(
32 'title' => 'Annual CiviCRM meet',
33 'event_title' => 'Annual CiviCRM meet',
34 'event_type_id' => '1',
35 'participant_listing_id' => 0,
37 'start_date' => '2008-10-21 00:00:00',
38 'event_start_date' => '2008-10-21 00:00:00',
39 'is_online_registration' => 0,
43 'is_show_location' => '1',
44 'default_role_id' => '1',
45 'is_email_confirm' => 0,
47 'is_partial_payment' => 0,
48 'is_multiple_registrations' => 0,
49 'allow_same_participant_emails' => 0,
51 'created_date' => '20120130621222105',
57 return $expectedResult ;
62 * This example has been generated from the API test suite. The test that created it is called
64 * testGetEventByEventTitle and can be found in
65 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/EventTest.php
67 * You can see the outcome of the API tests at
68 * http://tests.dev.civicrm.org/trunk/results-api_v3
70 * To Learn about the API read
71 * http://book.civicrm.org/developer/current/techniques/api/
73 * and review the wiki at
74 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
76 * Read more about testing here
77 * http://wiki.civicrm.org/confluence/display/CRM/Testing
79 * API Standards documentation:
80 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards