From 42d0c5d4e7a6a9d271b45a591469f78ae854bab0 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 24 May 2013 08:24:45 +1200 Subject: [PATCH] remove example file with case sensitive filename issue --- api/v3/examples/ActivityGetFields.php | 292 -------------------------- 1 file changed, 292 deletions(-) delete mode 100644 api/v3/examples/ActivityGetFields.php diff --git a/api/v3/examples/ActivityGetFields.php b/api/v3/examples/ActivityGetFields.php deleted file mode 100644 index af2a475142..0000000000 --- a/api/v3/examples/ActivityGetFields.php +++ /dev/null @@ -1,292 +0,0 @@ - 3, - 'action' => 'create', -); - - $result = civicrm_api( 'activity','getfields',$params ); - - return $result; -} - -/* - * Function returns array of result expected from previous function - */ -function activity_getfields_expectedresult(){ - - $expectedResult = array( - 'is_error' => 0, - 'version' => 3, - 'count' => 28, - 'values' => array( - 'source_contact_id' => array( - 'name' => 'source_contact_id', - 'type' => 1, - 'title' => 'Source Contact', - 'import' => true, - 'where' => 'civicrm_activity.source_contact_id', - 'headerPattern' => '/(activity.)?source(.contact(.id)?)?/i', - 'export' => true, - 'FKClassName' => 'CRM_Contact_DAO_Contact', - 'api.default' => 'user_contact_id', - ), - 'source_record_id' => array( - 'name' => 'source_record_id', - 'type' => 1, - 'title' => 'Source Record', - ), - 'activity_type_id' => array( - 'name' => 'activity_type_id', - 'type' => 1, - 'title' => 'Activity Type ID', - 'required' => true, - 'import' => true, - 'where' => 'civicrm_activity.activity_type_id', - 'headerPattern' => '/(activity.)?type(.id$)/i', - ), - 'activity_date_time' => array( - 'name' => 'activity_date_time', - 'type' => 12, - 'title' => 'Activity Date', - 'import' => true, - 'where' => 'civicrm_activity.activity_date_time', - 'headerPattern' => '/(activity.)?date(.time$)?/i', - 'export' => true, - ), - 'phone_id' => array( - 'name' => 'phone_id', - 'type' => 1, - 'title' => 'Phone (called) ID', - 'FKClassName' => 'CRM_Core_DAO_Phone', - ), - 'phone_number' => array( - 'name' => 'phone_number', - 'type' => 2, - 'title' => 'Phone (called) Number', - 'maxlength' => 64, - 'size' => 30, - ), - 'priority_id' => array( - 'name' => 'priority_id', - 'type' => 1, - 'title' => 'Priority', - 'pseudoconstant' => array( - 'name' => 'priority', - 'optionGroupName' => 'priority', - ), - 'api.aliases' => array( - '0' => 'priority', - ), - 'options' => array( - '1' => 'Urgent', - '2' => 'Normal', - '3' => 'Low', - ), - ), - 'parent_id' => array( - 'name' => 'parent_id', - 'type' => 1, - 'title' => 'Parent Activity Id', - 'FKClassName' => 'CRM_Activity_DAO_Activity', - ), - 'is_auto' => array( - 'name' => 'is_auto', - 'type' => 16, - 'title' => 'Auto', - ), - 'relationship_id' => array( - 'name' => 'relationship_id', - 'type' => 1, - 'title' => 'Relationship Id', - 'default' => 'UL', - 'FKClassName' => 'CRM_Contact_DAO_Relationship', - ), - 'is_current_revision' => array( - 'name' => 'is_current_revision', - 'type' => 16, - 'title' => 'Is this activity a current revision in versioning chain?', - 'import' => true, - 'where' => 'civicrm_activity.is_current_revision', - 'headerPattern' => '/(is.)?(current.)?(revision|version(ing)?)/i', - 'export' => true, - ), - 'original_id' => array( - 'name' => 'original_id', - 'type' => 1, - 'title' => 'Original Activity ID ', - 'FKClassName' => 'CRM_Activity_DAO_Activity', - ), - 'weight' => array( - 'name' => 'weight', - 'type' => 1, - 'title' => 'Weight', - ), - 'id' => array( - 'name' => 'id', - 'type' => 1, - 'title' => 'Activity ID', - 'required' => true, - 'import' => true, - 'where' => 'civicrm_activity.id', - 'export' => true, - 'uniqueName' => 'activity_id', - ), - 'subject' => array( - 'name' => 'subject', - 'type' => 2, - 'title' => 'Subject', - 'maxlength' => 255, - 'size' => 45, - 'import' => true, - 'where' => 'civicrm_activity.subject', - 'headerPattern' => '/(activity.)?subject/i', - 'export' => true, - 'uniqueName' => 'activity_subject', - ), - 'duration' => array( - 'name' => 'duration', - 'type' => 1, - 'title' => 'Duration', - 'import' => true, - 'where' => 'civicrm_activity.duration', - 'headerPattern' => '/(activity.)?duration(s)?$/i', - 'export' => true, - 'uniqueName' => 'activity_duration', - ), - 'location' => array( - 'name' => 'location', - 'type' => 2, - 'title' => 'Location', - 'maxlength' => 255, - 'size' => 45, - 'import' => true, - 'where' => 'civicrm_activity.location', - 'headerPattern' => '/(activity.)?location$/i', - 'export' => true, - 'uniqueName' => 'activity_location', - ), - 'details' => array( - 'name' => 'details', - 'type' => 32, - 'title' => 'Details', - 'rows' => 8, - 'cols' => 60, - 'import' => true, - 'where' => 'civicrm_activity.details', - 'headerPattern' => '/(activity.)?detail(s)?$/i', - 'export' => true, - 'uniqueName' => 'activity_details', - ), - 'status_id' => array( - 'name' => 'status_id', - 'type' => 1, - 'title' => 'Activity Status Id', - 'import' => true, - 'where' => 'civicrm_activity.status_id', - 'headerPattern' => '/(activity.)?status(.label$)?/i', - 'uniqueName' => 'activity_status_id', - ), - 'is_test' => array( - 'name' => 'is_test', - 'type' => 16, - 'title' => 'Test', - 'import' => true, - 'where' => 'civicrm_activity.is_test', - 'headerPattern' => '/(is.)?test(.activity)?/i', - 'export' => true, - 'uniqueName' => 'activity_is_test', - ), - 'medium_id' => array( - 'name' => 'medium_id', - 'type' => 1, - 'title' => 'Activity Medium', - 'default' => 'UL', - 'uniqueName' => 'activity_medium_id', - ), - 'result' => array( - 'name' => 'result', - 'type' => 2, - 'title' => 'Result', - 'maxlength' => 255, - 'size' => 45, - 'uniqueName' => 'activity_result', - ), - 'is_deleted' => array( - 'name' => 'is_deleted', - 'type' => 16, - 'title' => 'Activity is in the Trash', - 'import' => true, - 'where' => 'civicrm_activity.is_deleted', - 'headerPattern' => '/(activity.)?(trash|deleted)/i', - 'export' => true, - 'uniqueName' => 'activity_is_deleted', - ), - 'campaign_id' => array( - 'name' => 'campaign_id', - 'type' => 1, - 'title' => 'Campaign ID', - 'import' => true, - 'where' => 'civicrm_activity.campaign_id', - 'export' => true, - 'FKClassName' => 'CRM_Campaign_DAO_Campaign', - 'uniqueName' => 'activity_campaign_id', - ), - 'engagement_level' => array( - 'name' => 'engagement_level', - 'type' => 1, - 'title' => 'Engagement Index', - 'import' => true, - 'where' => 'civicrm_activity.engagement_level', - 'export' => true, - 'uniqueName' => 'activity_engagement_level', - ), - 'assignee_contact_id' => array( - 'name' => 'assignee_id', - 'title' => 'assigned to', - 'type' => 1, - 'FKClassName' => 'CRM_Activity_DAO_ActivityAssignment', - ), - 'target_contact_id' => array( - 'name' => 'target_id', - 'title' => 'Activity Target', - 'type' => 1, - 'FKClassName' => 'CRM_Activity_DAO_ActivityTarget', - ), - 'activity_status_id' => array( - 'name' => 'status_id', - 'title' => 'Status Id', - 'type' => 1, - ), - ), -); - - return $expectedResult ; -} - - -/* -* This example has been generated from the API test suite. The test that created it is called -* -* testGetFields and can be found in -* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ActivityTest.php -* -* You can see the outcome of the API tests at -* http://tests.dev.civicrm.org/trunk/results-api_v3 -* -* To Learn about the API read -* http://book.civicrm.org/developer/current/techniques/api/ -* -* and review the wiki at -* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs -* -* Read more about testing here -* http://wiki.civicrm.org/confluence/display/CRM/Testing -* -* API Standards documentation: -* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards -*/ \ No newline at end of file -- 2.25.1