4 demonstrates use of IN filter
6 function relationship_get_example(){
8 'relationship_type_id' => array(
18 $result = civicrm_api( 'relationship','get',$params );
24 * Function returns array of result expected from previous function
26 function relationship_get_expectedresult(){
28 $expectedResult = array(
35 'contact_id_a' => '66',
36 'contact_id_b' => '67',
37 'relationship_type_id' => '33',
38 'start_date' => '2008-12-20',
41 'is_permission_a_b' => 0,
42 'is_permission_b_a' => 0,
46 'contact_id_a' => '66',
47 'contact_id_b' => '67',
48 'relationship_type_id' => '34',
49 'start_date' => '2008-12-20',
52 'is_permission_a_b' => 0,
53 'is_permission_b_a' => 0,
58 return $expectedResult ;
63 * This example has been generated from the API test suite. The test that created it is called
65 * testGetTypeOperators and can be found in
66 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/RelationshipTest.php
68 * You can see the outcome of the API tests at
69 * http://tests.dev.civicrm.org/trunk/results-api_v3
71 * To Learn about the API read
72 * http://book.civicrm.org/developer/current/techniques/api/
74 * and review the wiki at
75 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
77 * Read more about testing here
78 * http://wiki.civicrm.org/confluence/display/CRM/Testing
80 * API Standards documentation:
81 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards