6 function domain_get_example(){
12 $result = civicrm_api( 'domain','get',$params );
18 * Function returns array of result expected from previous function
20 function domain_get_expectedresult(){
22 $expectedResult = array(
29 'name' => 'Default Domain Name',
32 'domain_email' => 'my@email.com',
33 'domain_phone' => array(
34 'phone_type' => 'Phone',
37 'domain_address' => array(
38 'street_address' => '45 Penny Lane',
39 'supplemental_address_1' => '',
40 'supplemental_address_2' => '',
42 'state_province_id' => '',
48 'from_email' => 'info@EXAMPLE.ORG',
49 'from_name' => 'FIXME',
53 'name' => 'Second Domain',
54 'version' => '4.3.alpha1',
56 'domain_email' => '"Domain Email" <domainemail2@example.org>',
57 'domain_phone' => array(
58 'phone_type' => 'Phone',
59 'phone' => '204 555-1001',
61 'domain_address' => array(
62 'street_address' => '15 Main St',
63 'supplemental_address_1' => '',
64 'supplemental_address_2' => '',
65 'city' => 'Collinsville',
66 'state_province_id' => '1006',
67 'postal_code' => '6022',
68 'country_id' => '1228',
69 'geo_code_1' => '41.8328',
70 'geo_code_2' => '-72.9253',
72 'from_email' => 'info@EXAMPLE.ORG',
73 'from_name' => 'FIXME',
78 return $expectedResult ;
83 * This example has been generated from the API test suite. The test that created it is called
85 * testGet and can be found in
86 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/DomainTest.php
88 * You can see the outcome of the API tests at
89 * http://tests.dev.civicrm.org/trunk/results-api_v3
91 * To Learn about the API read
92 * http://book.civicrm.org/developer/current/techniques/api/
94 * and review the wiki at
95 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
97 * Read more about testing here
98 * http://wiki.civicrm.org/confluence/display/CRM/Testing
100 * API Standards documentation:
101 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards