6 function line_item_get_example(){
9 'entity_table' => 'civicrm_contribution',
12 $result = civicrm_api( 'line_item','get',$params );
18 * Function returns array of result expected from previous function
20 function line_item_get_expectedresult(){
22 $expectedResult = array(
30 'entity_table' => 'civicrm_contribution',
32 'price_field_id' => '1',
33 'label' => 'Contribution Amount',
35 'unit_price' => '100.00',
36 'line_total' => '100.00',
37 'price_field_value_id' => '1',
38 'financial_type_id' => '3',
39 'deductible_amount' => '0.00',
44 return $expectedResult ;
49 * This example has been generated from the API test suite. The test that created it is called
51 * testGetBasicLineItem and can be found in
52 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/LineItemTest.php
54 * You can see the outcome of the API tests at
55 * http://tests.dev.civicrm.org/trunk/results-api_v3
57 * To Learn about the API read
58 * http://book.civicrm.org/developer/current/techniques/api/
60 * and review the wiki at
61 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
63 * Read more about testing here
64 * http://wiki.civicrm.org/confluence/display/CRM/Testing
66 * API Standards documentation:
67 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards