Skip to content
Snippets Groups Projects
Commit b259a4ab authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

updated examples

parent d5d148ab
No related branches found
No related tags found
No related merge requests found
Showing
with 48 additions and 27 deletions
......@@ -95,4 +95,4 @@ function activity_create_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -49,6 +49,8 @@ function activity_get_expectedresult(){
'is_current_revision' => '1',
'is_deleted' => 0,
'source_contact_id' => '1',
'custom_1' => 'defaultValue',
'custom_1_1' => 'defaultValue',
'custom_2_id' => '1',
'custom_2_1_id' => '1',
'custom_2' => 'Anderson, Anthony',
......@@ -81,4 +83,4 @@ function activity_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -78,4 +78,4 @@ function activity_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -77,4 +77,4 @@ function activity_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -96,4 +96,4 @@ function activity__expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -79,11 +79,16 @@ function activity_get_expectedresult(){
'nick_name' => '',
'legal_name' => '',
'image_URL' => '',
'preferred_communication_method' => '',
'preferred_language' => 'en_US',
'preferred_mail_format' => 'Both',
'first_name' => 'Anthony',
'middle_name' => 'J.',
'last_name' => 'Anderson',
'prefix_id' => 'Mr.',
'suffix_id' => 'II',
'job_title' => '',
'gender_id' => '',
'birth_date' => '',
'is_deceased' => 0,
'deceased_date' => '',
......@@ -114,6 +119,9 @@ function activity_get_expectedresult(){
'im' => '',
'worldregion_id' => '',
'world_region' => '',
'individual_prefix' => 'Mr.',
'individual_suffix' => 'II',
'gender' => '',
'state_province_name' => '',
'state_province' => '',
'country' => '',
......@@ -149,4 +157,4 @@ function activity_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -95,4 +95,4 @@ function activity_create_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -58,4 +58,4 @@ function activity_delete_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -77,4 +77,4 @@ function activity_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -45,6 +45,7 @@ function activity_getfields_expectedresult(){
'import' => true,
'where' => 'civicrm_activity.activity_type_id',
'headerPattern' => '/(activity.)?type(.id$)/i',
'default' => '1',
'pseudoconstant' => array(
'optionGroupName' => 'activity_type',
),
......@@ -94,7 +95,7 @@ function activity_getfields_expectedresult(){
'name' => 'relationship_id',
'type' => 1,
'title' => 'Relationship Id',
'default' => 'UL',
'default' => 'NULL',
'FKClassName' => 'CRM_Contact_DAO_Relationship',
),
'is_current_revision' => array(
......@@ -105,6 +106,7 @@ function activity_getfields_expectedresult(){
'where' => 'civicrm_activity.is_current_revision',
'headerPattern' => '/(is.)?(current.)?(revision|version(ing)?)/i',
'export' => true,
'default' => '1',
),
'original_id' => array(
'name' => 'original_id',
......@@ -187,6 +189,9 @@ function activity_getfields_expectedresult(){
'optionGroupName' => 'activity_status',
),
'uniqueName' => 'activity_status_id',
'api.aliases' => array(
'0' => 'activity_status',
),
),
'is_test' => array(
'name' => 'is_test',
......@@ -202,7 +207,7 @@ function activity_getfields_expectedresult(){
'name' => 'medium_id',
'type' => 1,
'title' => 'Activity Medium',
'default' => 'UL',
'default' => 'NULL',
'pseudoconstant' => array(
'optionGroupName' => 'encounter_medium',
),
......@@ -229,11 +234,16 @@ function activity_getfields_expectedresult(){
'campaign_id' => array(
'name' => 'campaign_id',
'type' => 1,
'title' => 'Campaign ID',
'title' => 'Campaign',
'import' => true,
'where' => 'civicrm_activity.campaign_id',
'export' => true,
'FKClassName' => 'CRM_Campaign_DAO_Campaign',
'pseudoconstant' => array(
'table' => 'civicrm_campaign',
'keyColumn' => 'id',
'labelColumn' => 'title',
),
'uniqueName' => 'activity_campaign_id',
),
'engagement_level' => array(
......@@ -294,4 +304,4 @@ function activity_getfields_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -36,10 +36,10 @@ function activity_type_create_expectedresult(){
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 722,
'id' => 727,
'values' => array(
'722' => array(
'id' => '722',
'727' => array(
'id' => '727',
'option_group_id' => '2',
'label' => 'send out letters',
'value' => '46',
......@@ -83,4 +83,4 @@ function activity_type_create_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -102,4 +102,4 @@ function activity_type_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -77,4 +77,4 @@ function address_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -76,4 +76,4 @@ function address_create_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -96,4 +96,4 @@ function address_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -82,4 +82,4 @@ function address_create_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -58,4 +58,4 @@ function address_delete_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -75,4 +75,4 @@ function address_get_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -46,7 +46,7 @@ function batch_create_expectedresult(){
'created_id' => '',
'created_date' => '',
'modified_id' => '',
'modified_date' => '',
'modified_date' => '2012-11-14 16:02:35',
'saved_search_id' => '',
'status_id' => '1',
'type_id' => '',
......@@ -55,6 +55,7 @@ function batch_create_expectedresult(){
'item_count' => '3',
'payment_instrument_id' => '',
'exported_date' => '',
'data' => '',
),
),
);
......@@ -83,4 +84,4 @@ function batch_create_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
......@@ -58,4 +58,4 @@ function batch_delete_expectedresult(){
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
\ No newline at end of file
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment