6 function membership_type_get_example(){
12 $result = civicrm_api( 'membership_type','get',$params );
18 * Function returns array of result expected from previous function
20 function membership_type_get_expectedresult(){
22 $expectedResult = array(
32 'member_of_contact_id' => '1',
33 'financial_type_id' => '1',
34 'minimum_fee' => '0.00',
35 'duration_unit' => 'year',
36 'duration_interval' => '1',
37 'period_type' => 'rolling',
45 return $expectedResult ;
50 * This example has been generated from the API test suite. The test that created it is called
52 * testGet and can be found in
53 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/MembershipTypeTest.php
55 * You can see the outcome of the API tests at
56 * http://tests.dev.civicrm.org/trunk/results-api_v3
58 * To Learn about the API read
59 * http://book.civicrm.org/developer/current/techniques/api/
61 * and review the wiki at
62 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
64 * Read more about testing here
65 * http://wiki.civicrm.org/confluence/display/CRM/Testing
67 * API Standards documentation:
68 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards