Api docblock cleanup.
authorColeman Watts <coleman@civicrm.org>
Fri, 6 Feb 2015 02:19:24 +0000 (21:19 -0500)
committerColeman Watts <coleman@civicrm.org>
Fri, 6 Feb 2015 02:19:24 +0000 (21:19 -0500)
107 files changed:
api/Exception.php
api/api.php
api/v3/Acl.php
api/v3/AclRole.php
api/v3/ActionSchedule.php
api/v3/Activity.php
api/v3/ActivityContact.php
api/v3/ActivityType.php
api/v3/Address.php
api/v3/Attachment.php
api/v3/Batch.php
api/v3/Campaign.php
api/v3/Case.php
api/v3/CaseType.php
api/v3/Constant.php
api/v3/Contact.php
api/v3/ContactType.php
api/v3/Contribution.php
api/v3/ContributionPage.php
api/v3/ContributionRecur.php
api/v3/ContributionSoft.php
api/v3/Country.php
api/v3/CustomField.php
api/v3/CustomGroup.php
api/v3/CustomSearch.php
api/v3/CustomValue.php
api/v3/Dashboard.php
api/v3/DashboardContact.php
api/v3/Domain.php
api/v3/Email.php
api/v3/EntityTag.php
api/v3/Event.php
api/v3/Extension.php
api/v3/File.php
api/v3/FinancialAccount.php
api/v3/FinancialType.php
api/v3/Generic.php
api/v3/Generic/Getactions.php
api/v3/Generic/Getlist.php
api/v3/Generic/Setvalue.php
api/v3/Generic/Update.php
api/v3/Grant.php
api/v3/Group.php
api/v3/GroupContact.php
api/v3/GroupNesting.php
api/v3/GroupOrganization.php
api/v3/Im.php
api/v3/Job.php
api/v3/LineItem.php
api/v3/LocBlock.php
api/v3/LocationType.php
api/v3/MailSettings.php
api/v3/Mailing.php
api/v3/MailingAB.php
api/v3/MailingComponent.php
api/v3/MailingContact.php
api/v3/MailingEventConfirm.php
api/v3/MailingEventQueue.php
api/v3/MailingEventResubscribe.php
api/v3/MailingEventSubscribe.php
api/v3/MailingEventUnsubscribe.php
api/v3/MailingGroup.php
api/v3/MailingJob.php
api/v3/MailingRecipients.php
api/v3/Membership.php
api/v3/MembershipBlock.php
api/v3/MembershipPayment.php
api/v3/MembershipStatus.php
api/v3/MembershipType.php
api/v3/MessageTemplate.php
api/v3/Note.php
api/v3/OptionGroup.php
api/v3/OptionValue.php
api/v3/Participant.php
api/v3/ParticipantPayment.php
api/v3/ParticipantStatusType.php
api/v3/PaymentProcessor.php
api/v3/PaymentProcessorType.php
api/v3/Phone.php
api/v3/Phone/Get.php
api/v3/Pledge.php
api/v3/PledgePayment.php
api/v3/Premium.php
api/v3/PriceField.php
api/v3/PriceFieldValue.php
api/v3/PriceSet.php
api/v3/PrintLabel.php
api/v3/Product.php
api/v3/Profile.php
api/v3/Relationship.php
api/v3/RelationshipType.php
api/v3/ReportInstance.php
api/v3/ReportTemplate.php
api/v3/Setting.php
api/v3/SmsProvider.php
api/v3/Survey.php
api/v3/SurveyRespondant.php
api/v3/System.php
api/v3/SystemLog.php
api/v3/Tag.php
api/v3/UFField.php
api/v3/UFGroup.php
api/v3/UFJoin.php
api/v3/UFMatch.php
api/v3/Website.php
api/v3/WordReplacement.php
api/v3/utils.php

index 2bb9dcdd76fb9c2d10f78e1707e2ba19286a818d..812bb603c068f446de9e14ab707e516d1e5252a9 100644 (file)
@@ -4,7 +4,6 @@
  * File for the CiviCRM APIv3 API wrapper
  *
  * @package CiviCRM_APIv3
- * @subpackage API
  *
  * @copyright CiviCRM LLC (c) 2004-2014
  */
index 6c263513e871deca72176ac02f4b600bda8b387c..1ba09c7b3bfbbd394be5f64f1e0b0b9d69f0181e 100644 (file)
@@ -1,14 +1,9 @@
 <?php
 
 /**
- * @file
- * File for the CiviCRM APIv3 API wrapper.
+ * @file CiviCRM APIv3 API wrapper.
  *
  * @package CiviCRM_APIv3
- * @subpackage API
- *
- * @copyright CiviCRM LLC (c) 2004-2014
- * @version $Id: api.php 30486 2010-11-02 16:12:09Z shot $
  */
 
 /**
index d1ee882ee96760403dd6c48a0f08e932727153a7..f8d1df5e2845e5a0a4db7d6d56b82470652829e3 100644 (file)
  * This api exposes CiviCRM acl.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_acl
  */
 
 /**
  * Save an acl.
  *
- * {@getfields acl_create}
- * @example aclCreate.php
- *
  * @param array $params
  *
  * @return array
index 33d6c6fcaae9a2e8397773d36f9935c4b4af3725..d4f5c95ae1ad966fa4d42c5298ef80b91aacf03a 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM acl_role.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_acl_role
  */
 
 /**
index 946318deb43ef633cb313b589f100a7bdb9ae922..0a5083b87dba92a4de07b01139e132e6225521be 100644 (file)
  */
 
 /**
- * File for the CiviCRM APIv3 for Scheduled Reminders
+ * This api exposes CiviCRM Scheduled Reminders.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ActionSchedule
- *
  */
 
 /**
@@ -66,7 +64,7 @@ function civicrm_api3_action_schedule_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_action_schedule_create_spec(&$params) {
   $params['title']['api.required'] = TRUE;
@@ -78,8 +76,7 @@ function _civicrm_api3_action_schedule_create_spec(&$params) {
  * Delete an existing action_schedule.
  *
  * @param array $params
- *   Array containing id of the action_schedule.
- *   to be deleted
+ *   Array containing id of the action_schedule to be deleted.
  *
  * @return array
  *   API result array
index f4521ea21972dc47a652a44dde6109131d6344df..d3b43a2e28dd1969f9bd6809f08f27313f95598f 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM activity.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Activity
  */
 
 
@@ -242,7 +241,7 @@ function civicrm_api3_activity_get($params) {
 /**
  * Given a list of activities, append any extra data requested about the activities.
  *
- * NOTE: Called by civicrm-core and CiviHR
+ * @note Called by civicrm-core and CiviHR
  *
  * @param array $params
  *   API request parameters.
index fc873f43d8affe284f5a3496b5dcf235a6da722c..c03033093527cea44ee013e970268e7ee1c0ffb4 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM activity contact.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ActivityContact
- *
  */
 
 /**
@@ -51,7 +49,7 @@ function civicrm_api3_activity_contact_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_activity_contact_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index 627cfd419e6da7db1cc8f814950e438b5c6d506f..ebcc8b040ce2988d54073d6d388bc7fbde6b9676 100644 (file)
@@ -31,7 +31,6 @@
  * @deprecated
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Activity
  */
 
 /**
@@ -68,7 +67,7 @@ function civicrm_api3_activity_type_get($params) {
  * @return array
  *   created / updated activity type
  *
- * @deprecated - use option_value create
+ * @deprecated use option_value api
  */
 function civicrm_api3_activity_type_create($params) {
 
@@ -91,7 +90,7 @@ function civicrm_api3_activity_type_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_activity_type_create_spec(&$params) {
   $params['label']['api.required'] = 1;
@@ -109,7 +108,7 @@ function _civicrm_api3_activity_type_create_spec(&$params) {
  * @return array
  *   API result array
  *
- * @deprecated - we will introduce OptionValue Delete- plse consider helping with this if not done
+ * @deprecated use option_value api
  */
 function civicrm_api3_activity_type_delete($params) {
   return civicrm_api3_create_success(CRM_Core_BAO_OptionValue::del($params['id']), $params);
index 0e554efedf22e591702cd4ed5c219e7daa289e18..b3f644b256fdd45682ff3488dff159dfbc0e4ff0 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM address.
+ * This api exposes CiviCRM address records.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Address
- *
  */
 
 /**
@@ -89,7 +87,7 @@ function civicrm_api3_address_create(&$params) {
  * Adjust Metadata for Create action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_address_create_spec(&$params) {
   $params['location_type_id']['api.required'] = 1;
index 078d0fada84ba6d2a590ba746f2a5d9d867b7923..258c4525d22766dafe1c73343297674f89083285 100644 (file)
@@ -79,7 +79,6 @@
  *    "check_permissions"==false)
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Attachment
  */
 
 /**
index 84ab4051dbd17a46a66da5ad002d80b5eff016e1..eb46526c7b468f8cc78dfb77b47ab9ef14cc5fcd 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM batch.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Batch
  */
 
 /**
@@ -50,7 +49,7 @@ function civicrm_api3_batch_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_batch_create_spec(&$params) {
   //@todo - the entity table field looks like it is not actually required & should probably be removed (or a description added if
index 96260393ad815535ca7727a0fd528ef1564ad18c..836f5427745b319fff3eefc16d4957da45d14217 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM campaign.
+ * This api exposes CiviCRM campaign records.
+ *
+ * @note Campaign component must be enabled.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Campaign
  */
 
 /**
@@ -53,7 +54,7 @@ function civicrm_api3_campaign_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_campaign_create_spec(&$params) {
   $params['title']['api.required'] = 1;
index 4d756e92659a8b73356f680cab19ccdc2534aee5..79dd0b6bfc8dbafc24f7f56230f7c8f579ffe861 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM Case.
+ * This api exposes CiviCRM Case objects.
  * Developed by woolman.org
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Case
  */
 
 
@@ -38,6 +37,7 @@
  * Open a new case, add client and manager roles, and add standard timeline.
  *
  * @param array $params
+ * @code
  * //REQUIRED:
  * 'case_type_id' => int OR
  * 'case_type' => str (provide one or the other)
@@ -52,6 +52,7 @@
  * 'start_date' => str datestamp // defaults to: date('YmdHis')
  * 'duration' => int // in minutes
  * 'details' => str // html format
+ * @endcode
  *
  * @throws API_Exception
  * @return array
@@ -141,7 +142,7 @@ function _civicrm_api3_case_get_spec(&$params) {
  * Adjust Metadata for Create Action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_case_create_spec(&$params) {
   $params['contact_id']['api.aliases'] = array('client_id');
@@ -163,7 +164,7 @@ function _civicrm_api3_case_create_spec(&$params) {
  * Adjust Metadata for Update action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_case_update_spec(&$params) {
   $params['id']['api.required'] = 1;
@@ -173,7 +174,7 @@ function _civicrm_api3_case_update_spec(&$params) {
  * Adjust Metadata for Delete action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_case_delete_spec(&$params) {
   $params['id']['api.required'] = 1;
@@ -387,12 +388,6 @@ function civicrm_api3_case_delete($params) {
   }
 }
 
-/***********************************/
-/*                                 */
-/*     INTERNAL FUNCTIONS          */
-/*                                 */
-/***********************************/
-
 /**
  * Internal function to retrieve a case.
  *
index 74f5b4d2fe3084c44e1754638f79b8f8fc5f64e6..bd556ec65ab243b28e0f2f98454d4fcaac1c2df9 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM Case.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Case
  */
 
 /**
index d11571f745874374c545ea51905f3f682ecabdf3..cdcf39eb5fbb3afdbd8a54607cb2e87341643e69 100644 (file)
@@ -31,7 +31,6 @@
  * @deprecated
  *   The constant api is deprecated as of CiviCRM 4.4. Please use the getoptions api action instead.
  * @package CiviCRM_APIv3
- * @subpackage API_Constant
  */
 
 /**
@@ -53,7 +52,7 @@ function _civicrm_api3_constant_deprecation() {
  *
  * @param array $params
  *  Name of a public static method of
- *                  CRM_Core_PseudoConstant: one of
+ *  CRM_Core_PseudoConstant: one of
  *  <ul>
  *    <li>activityStatus</li>
  *    <li>activityType</li>
index acd04d03b3e012059baa8f990a459c1fafced335..99fca5a0b0338a51cf4f28142659c427e25e0846 100644 (file)
  * This api exposes CiviCRM contacts.
  * Contacts are the main entity in CiviCRM and this api is more robust than most.
  *   - Get action allows all params supported by advanced search.
- *   - Create action allows creating several other entities at once (e.g. email).
+ *   - Create action allows creating several related entities at once (e.g. email).
  *   - Create allows checking for duplicate contacts.
  * Use getfields to list the full range of parameters and options supported by each action.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Contact
  */
 
 /**
@@ -114,7 +113,7 @@ function civicrm_api3_contact_create($params) {
  * Adjust Metadata for Create action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contact_create_spec(&$params) {
   $params['contact_type']['api.required'] = 1;
@@ -165,7 +164,7 @@ function civicrm_api3_contact_getcount($params) {
  * Adjust Metadata for Get action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contact_get_spec(&$params) {
   $params['contact_is_deleted']['api.default'] = 0;
@@ -852,14 +851,11 @@ function _civicrm_api3_contact_deprecation() {
  * Merges given pair of duplicate contacts.
  *
  * @param array $params
- *   Input parameters.
- *
- * Allowed @params array keys are:
- * {int     main_id     main contact id with whom merge has to happen}
- * {int     other_id    duplicate contact which would be deleted after merge operation}
- * {string  mode        helps decide how to behave when there are conflicts.
- *                      A 'safe' value skips the merge if there are no conflicts. Does a force merge otherwise.}
- * {boolean auto_flip   wether to let api decide which contact to retain and which to delete.}
+ *   Allowed array keys are:
+ *   -int main_id: main contact id with whom merge has to happen
+ *   -int other_id: duplicate contact which would be deleted after merge operation
+ *   -string mode: "safe" skips the merge if there are no conflicts. Does a force merge otherwise.
+ *   -boolean auto_flip: whether to let api decide which contact to retain and which to delete.
  *
  * @return array
  *   API Result Array
index a14d833adb5c14f73a7ffdb6499f3e54586db520..6e4567493b064ec003a8d8d0d96e4a71ade4b578 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM contact type.
+ * This api exposes CiviCRM contact types and sub-types.
+ *
+ * CiviCRM comes with 3 primary contact types - Individual, Organization & Household.
+ * Changing these is not advised, but sub_types can be created with this api.
+ * Pass 'parent_id' param to specify which base type a new sub_type extends.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Survey
  */
 
 /**
index 3de323215a235cea1b435dd22dfdc1ff7facc540..1a2dff8fd4f04667475d8b341993c2abbbda311a 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM Contribution.
+ * This api exposes CiviCRM Contribution records.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Contribute
- *
  */
 
 /**
@@ -73,7 +71,7 @@ function civicrm_api3_contribution_create(&$params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contribution_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -245,7 +243,7 @@ function _civicrm_api3_format_soft_credit(&$contribution) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contribution_get_spec(&$params) {
   $params['contribution_test']['api.default'] = 0;
@@ -281,7 +279,7 @@ function _civicrm_api3_contribute_format_params($params, &$values) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contribution_transact_spec(&$params) {
   $fields = civicrm_api3('contribution', 'getfields', array('action' => 'create'));
@@ -360,7 +358,7 @@ function civicrm_api3_contribution_sendconfirmation($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contribution_sendconfirmation_spec(&$params) {
   $params['id'] = array(
index dd3f62571ed8de20fdde6669bc18e6df789d4d08..ddf9b344fb0395ae361fd04233fafbcbd648c396 100644 (file)
@@ -30,7 +30,6 @@
  * This api exposes CiviCRM contribution pages.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ContributionPage
  */
 
 /**
index fa1c6b8c49552ddcf03ef7d6d858b2e3a69150c6..0133aba9739c06b60850296a6f9bbc8c02c3c331 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM recurring contributions.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ContributionRecur
  */
 
 /**
@@ -51,7 +50,7 @@ function civicrm_api3_contribution_recur_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contribution_recur_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -64,9 +63,7 @@ function _civicrm_api3_contribution_recur_create_spec(&$params) {
  * Returns array of contribution_recurs matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all contribution_recurs will be returned
+ *   Array of properties. If empty, all records will be returned.
  *
  * @return array
  *   API result Array of matching contribution_recurs
index a54e364942f559f3c7874abad5d495f2565c5ec6..e678a498870c397a5093a3ce7ac813e2220b2078 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM soft credit.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ContributionSoft
- *
  */
 
 /**
@@ -52,7 +50,7 @@ function civicrm_api3_contribution_soft_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_contribution_soft_create_spec(&$params) {
   $params['contribution_id']['api.required'] = 1;
index 649d679febb5e1791ec76169daaccc111016cf10..fbbedb953923507c255eb22361e10e6d7f01103c 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM country.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Country
- *
  */
 
 /**
@@ -53,7 +51,7 @@ function civicrm_api3_country_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_country_create_spec(&$params) {
   $params['name']['api.required'] = 1;
index 5adbbef4847a9fe222bfea1a0edb5ac056051326..068258ce555a9ab2dee3b33b2200d7b9456ed126 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM custom field.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_CustomField
- *
  */
 
 /**
@@ -76,7 +74,7 @@ function _civicrm_api3_custom_field_flush_static_caches() {
  * Adjust Metadata for Create action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_custom_field_create_spec(&$params) {
   $params['label']['api.required'] = 1;
index 440850ba97bc0c673279427256d5939b754b7296..0774fa8bcda16193814e9176844160299bf16346 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM custom group.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_CustomGroup
- *
  */
 
 /**
@@ -69,7 +67,7 @@ function civicrm_api3_custom_group_create($params) {
  * Adjust Metadata for Create action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_custom_group_create_spec(&$params) {
   $params['extends']['api.required'] = 1;
index f54f04f474c849b849aa18709a002f79327fc07c..1862a6329d034b1493732594d8440aa18d7b33ca 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM custom search.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_CustomSearch
- *
  */
 
 /**
@@ -77,7 +75,7 @@ function civicrm_api3_custom_search_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_custom_search_create_spec(&$params) {
   require_once 'api/v3/OptionValue.php';
index 0e6912c3b704d69ff613edfc8c9221e7724cc022..f7ef22ff9a5fbcd67f863903a5d98198aeec8c2c 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM custom value.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_CustomField
- *
  */
 
 
@@ -113,7 +111,7 @@ function civicrm_api3_custom_value_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_custom_value_create_spec(&$params) {
   $params['entity_id']['api.required'] = 1;
@@ -229,7 +227,7 @@ function civicrm_api3_custom_value_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_custom_value_get_spec(&$params) {
   $params['entity_id']['api.required'] = 1;
index 08dbfa2c8cd3db7a7f70fd0b500c17770e685ad1..88d0875d3718a8f93b38d3d735a6b2975e65eb34 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM Dashboard.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Activity
  */
 
 
index f66fcac802290d5f3805648562ec189d589216ef..f70c354d65c7fb8010cfc04378738fabc3c73cdd 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM dashboard contacts.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ActionSchedule
- *
  */
 
 /**
@@ -74,7 +72,7 @@ function civicrm_api3_dashboard_contact_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_dashboard_contact_create_spec(&$params) {
   unset($params['version']);
index bd2e75083a95757a7cc44bcf5670d8316b3915ec..baa367524ae41e35ee37731bfa6d241b9d600234 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM domain.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Domain
- *
  */
 
 /**
@@ -116,7 +114,7 @@ function civicrm_api3_domain_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_domain_get_spec(&$params) {
   $params['current_domain'] = array('title' => "get loaded domain");
@@ -140,7 +138,7 @@ function civicrm_api3_domain_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_domain_create_spec(&$params) {
   $params['domain_version'] = $params['version'];
index c47b6a069450cec1635f2f29fe269c3bb3ec10c0..3f03ffb26519923fa74c652a556971e75ec4db23 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM email.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Email
- *
  */
 
 /**
@@ -52,7 +50,7 @@ function civicrm_api3_email_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_email_create_spec(&$params) {
   // TODO a 'clever' default should be introduced
index 9e1255b47af93b08c769ae09f969ece47b579bad..d3f7f97ccfe0973798047701a00d88ffe8a3e7d3 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM entity tag.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_EntityTag
- *
  */
 
 /**
@@ -66,7 +64,7 @@ function civicrm_api3_entity_tag_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_entity_tag_get_spec(&$params) {
   $params['entity_id']['api.aliases'] = array('contact_id');
index 1c20472bb3bfedafc3dad8a6c8704c30cbd3d827..df09a5767dc8d64dd87d5c21e1c15d68ccd1b6d5 100644 (file)
@@ -30,8 +30,6 @@
  * This api exposes CiviCRM event.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Event
- *
  */
 
 /**
@@ -63,7 +61,7 @@ function civicrm_api3_event_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_event_create_spec(&$params) {
   $params['start_date']['api.required'] = 1;
@@ -152,7 +150,7 @@ function civicrm_api3_event_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_event_get_spec(&$params) {
   $params['financial_type_id']['api.aliases'] = array('contribution_type_id');
index 79649f36459db87f13d21c12ca66f84c9297d117..2dfbe7728aa3b99e67ea6b1013f84ac4e241cd3a 100644 (file)
@@ -32,8 +32,6 @@ define('API_V3_EXTENSION_DELIMITER', ',');
  * This api exposes CiviCRM extension.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Extension
- *
  */
 
 /**
@@ -173,7 +171,6 @@ function civicrm_api3_extension_uninstall($params) {
  * @throws API_Exception
  * @return array
  *   API result
- * @example ExtensionDownload.php
  */
 function civicrm_api3_extension_download($params) {
   if (!array_key_exists('key', $params)) {
index b3f347611494636317d1d85b77a9b90b494d9620..b250075fd74b082d278264a4042015c417b30cea 100644 (file)
  */
 
 /**
- * This api allows minimal handling with the CiviCRM file DAO.
+ * This api is a simple wrapper of the CiviCRM file DAO.
+ *
  * Creating and updating files is a complex process and this api is usually insufficient.
  * Use the "Attachment" api instead for more robust file handling.
  *
  * @fixme no unit tests
  * @package CiviCRM_APIv3
- * @subpackage API_File
  */
 
 /**
  * Create a file record.
- * Note: This is only one of several steps needed to create a file in CiviCRM.
+ * @note This is only one of several steps needed to create a file in CiviCRM.
  * Use the "Attachment" api to better handle all steps.
  *
  * @param array $params
index 0e46b887d6659007732853e82ea33f15ed3c8240..b22581290e602e8898ba2ceda596079565becb32 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM financial_account.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_financial_account
  */
 
 /**
index 571e1c9759959cd54a07bbb219f3893e7aad9547..96e4deb6608a7c09aa956bf1b426d9cffe0ed6cc 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM financial_type.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_financial_type
  */
 
 /**
index 4dc53d259df4d052f2f43748cfaefb7cd075d257..635ad69b4048722f59a23d39c460d9e5cd4e9415 100644 (file)
@@ -1,4 +1,33 @@
 <?php
+/*
+ +--------------------------------------------------------------------+
+ | CiviCRM version 4.6                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+ */
+
+/**
+ * @package CiviCRM_APIv3
+ */
 
 /**
  * Get information about fields for a given api request.
index bdefaa06828d07b8266e4abccf8c8325905d0c59..4c51e710cc88e96a1c7c0a34ae2ff17ab82496a7 100644 (file)
@@ -1,28 +1,32 @@
 <?php
 /*
  +--------------------------------------------------------------------+
-| CiviCRM version 4.6                                                |
-+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2014                                |
-+--------------------------------------------------------------------+
-| This file is a part of CiviCRM.                                    |
-|                                                                    |
-| CiviCRM is free software; you can copy, modify, and distribute it  |
-| under the terms of the GNU Affero General Public License           |
-| Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
-|                                                                    |
-| CiviCRM is distributed in the hope that it will be useful, but     |
-| WITHOUT ANY WARRANTY; without even the implied warranty of         |
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
-| See the GNU Affero General Public License for more details.        |
-|                                                                    |
-| You should have received a copy of the GNU Affero General Public   |
-| License and the CiviCRM Licensing Exception along                  |
-| with this program; if not, contact CiviCRM LLC                     |
-| at info[AT]civicrm[DOT]org. If you have questions about the        |
-| GNU Affero General Public License or the licensing of CiviCRM,     |
-| see the CiviCRM license FAQ at http://civicrm.org/licensing        |
-+--------------------------------------------------------------------+
+ | CiviCRM version 4.6                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+ */
+
+/**
+ * @package CiviCRM_APIv3
  */
 
 /**
index fd0669b0b67ded1890b36b8c209fbae49f880d7f..8a388ef1cb152f8031e5065d3349666ee48cc43f 100644 (file)
@@ -1,29 +1,34 @@
 <?php
 /*
  +--------------------------------------------------------------------+
-| CiviCRM version 4.6                                                |
-+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2014                                |
-+--------------------------------------------------------------------+
-| This file is a part of CiviCRM.                                    |
-|                                                                    |
-| CiviCRM is free software; you can copy, modify, and distribute it  |
-| under the terms of the GNU Affero General Public License           |
-| Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
-|                                                                    |
-| CiviCRM is distributed in the hope that it will be useful, but     |
-| WITHOUT ANY WARRANTY; without even the implied warranty of         |
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
-| See the GNU Affero General Public License for more details.        |
-|                                                                    |
-| You should have received a copy of the GNU Affero General Public   |
-| License and the CiviCRM Licensing Exception along                  |
-| with this program; if not, contact CiviCRM LLC                     |
-| at info[AT]civicrm[DOT]org. If you have questions about the        |
-| GNU Affero General Public License or the licensing of CiviCRM,     |
-| see the CiviCRM license FAQ at http://civicrm.org/licensing        |
-+--------------------------------------------------------------------+
+ | CiviCRM version 4.6                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
  */
+
+/**
+ * @package CiviCRM_APIv3
+ */
+
 /**
  * Generic api wrapper used for quicksearch and autocomplete.
  *
index bf62d00bd10b24cdb7c216b5975e147adf68b462..fd2223ad9ec10d78e14c1d4ad6419bbaaa9d7c51 100644 (file)
@@ -1,4 +1,34 @@
 <?php
+/*
+ +--------------------------------------------------------------------+
+ | CiviCRM version 4.6                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+ */
+
+/**
+ * @package CiviCRM_APIv3
+ */
+
 /**
  * Set a single value using the api.
  *
index f8720865dfa690ffb218c5308312f060111071f8..f9181dad62b09a1751e3e40f7bdcc3094b6da527 100644 (file)
  +--------------------------------------------------------------------+
  */
 
+/**
+ * @package CiviCRM_APIv3
+ */
+
 /**
  * Update function is basically a hack.
  *
index 6ab0ce55c2087e15ea4b0d6ee1a0571832fa4cd9..bb0468fbbd240ae7858028ac57bdb717d1e4104d 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM grant.
+ * This api exposes CiviCRM grant records.
+ *
+ * @note Grant component must be enabled.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Grant
  */
 
 /**
@@ -51,7 +52,7 @@ function civicrm_api3_grant_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_grant_create_spec(&$params) {
   $params['grant_type_id']['api.required'] = 1;
@@ -72,13 +73,10 @@ function civicrm_api3_grant_get($params) {
 }
 
 /**
- * Delete an existing grant.
- *
- * This method is used to delete any existing grant. id of the grant
- * to be deleted is required field in $params array
+ * This method is used to delete an existing grant.
  *
  * @param array $params
- *   Array per getfields metadata.
+ *   Id of the grant to be deleted is required.
  *
  * @return array
  *   API Result Array
index c16cdc0247b25e9db080a1c7dfe6ae210910b0be..59ab73fcf4f097135fcfe28a8fa65bba5c1200f5 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM group.
+ * This api exposes CiviCRM groups.
+ *
+ * This api is for creating/deleting groups or fetching a list of existing groups.
+ * To add/remove contacts to a group, use the groupContact api instead.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Group
  */
 
 /**
@@ -51,7 +53,7 @@ function civicrm_api3_group_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_group_create_spec(&$params) {
   $params['is_active']['api.default'] = 1;
@@ -62,9 +64,7 @@ function _civicrm_api3_group_create_spec(&$params) {
  * Returns array of groups matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all groups will be returned
+ *   Array of properties. If empty, all records will be returned.
  *
  * @return array
  *   Array of matching groups
index 0a778333befcad7df2ed5932bc3a2d1e0c50485d..601efd2bc467b7e7ad253b4a0af96eee4401d2e8 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM group contact.
+ * This api exposes CiviCRM group contacts.
  *
- * @package CiviCRM_APIv3
- * @subpackage API_Group
+ * This api is for adding/removing contacts from a group,
+ * or fetching a list of groups for a contact.
+ *
+ * Important note: This api does not fetch smart groups for a contact.
+ * To fetch all contacts in a smart group, use the contact api
+ * passing a contact_id and group_id.
+ *
+ * To create/delete groups, use the group api instead.
  *
+ * @package CiviCRM_APIv3
  */
 
 
@@ -68,21 +75,10 @@ function civicrm_api3_group_contact_get($params) {
 /**
  * Add contact(s) to group(s).
  *
- * @param array $params
- *   Input parameters.
- *
- * Allowed @params array keys are:<br>
- * "contact_id" (required) : first contact to add<br>
- * "group_id" (required): first group to add contact(s) to<br>
- * "contact_id.1" etc. (optional) : another contact to add<br>
- * "group_id.1" etc. (optional) : additional group to add contact(s) to<br>
- * "status" (optional) : one of "Added", "Pending" or "Removed" (default is "Added")
- *
- * @return array
- *   Information about operation results
- *
- *   On success, the return array will be structured as follows:
- *   <code>array(
+ * This api has a legacy/nonstandard signature.
+ * On success, the return array will be structured as follows:
+ * @code
+ * array(
  *   "is_error" => 0,
  *   "version"  => 3,
  *   "count"    => 3,
@@ -91,15 +87,28 @@ function civicrm_api3_group_contact_get($params) {
  *     "added"       => integer,
  *     "total_count" => integer
  *   )
- *   )</code>
+ * )
+ * @endcode
  *
- *   On failure, the return array will be structured as follows:
- *   <code>array(
+ * On failure, the return array will be structured as follows:
+ * @code
+ * array(
  *   'is_error' => 1,
  *   'error_message' = string,
  *   'error_data' = mixed or undefined
- *   )</code>
- *   {@getfields GroupContact_create}
+ * )
+ * @endcode
+ *
+ * @param array $params
+ *   Input parameters.
+ *   - "contact_id" (required) : first contact to add
+ *   - "group_id" (required): first group to add contact(s) to
+ *   - "contact_id.1" etc. (optional) : another contact to add
+ *   - "group_id.1" etc. (optional) : additional group to add contact(s) to
+ *   - "status" (optional) : one of "Added", "Pending" or "Removed" (default is "Added")
+ *
+ * @return array
+ *   Information about operation results
  */
 function civicrm_api3_group_contact_create($params) {
   // Nonstandard bao - doesn't accept ID as a param, so convert id to group_id + contact_id
@@ -157,12 +166,13 @@ function civicrm_api3_group_contact_pending($params) {
 /**
  * Group contact helper function.
  *
+ * @todo behaviour is highly non-standard - need to figure out how to make this 'behave'
+ *   & at the very least return IDs & details of the groups created / changed
+ *
  * @param array $params
  * @param string $op
  *
  * @return array
- * @todo behaviour is highly non-standard - need to figure out how to make this 'behave'
- * & at the very least return IDs & details of the groups created / changed
  */
 function _civicrm_api3_group_contact_common($params, $op = 'Added') {
 
index ec537581f05d2a0adc85f9e63c6e5756922416ce..db88e2b2689a26dfd22af413f2e26e0b91abee2e 100644 (file)
@@ -28,9 +28,9 @@
 /**
  * This api exposes CiviCRM group nesting.
  *
- * @package CiviCRM_APIv3
- * @subpackage API_Group
+ * This defines parent/child relationships between nested groups.
  *
+ * @package CiviCRM_APIv3
  */
 
 /**
@@ -74,7 +74,7 @@ function civicrm_api3_group_nesting_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_group_nesting_create_spec(&$params) {
   $params['child_group_id']['api.required'] = 1;
@@ -85,8 +85,6 @@ function _civicrm_api3_group_nesting_create_spec(&$params) {
  * Removes specific nesting records.
  *
  * @param array $params
- *   Parameters array - allowed array keys include:.
- * {@getfields GroupNesting_delete}
  *
  * @return array
  *   API Success or fail array
index 8f8800ff92a90bfab4a58a10bfcccc0e8fe1d0d8..73a643785536cccc65bb95155b0122a53c4929a2 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes the relationships between organizations and CiviCRM groups.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Group
- *
  */
 
 
@@ -73,7 +71,7 @@ function civicrm_api3_group_organization_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_group_organization_create_spec(&$params) {
   $params['organization_id']['api.required'] = 1;
index 33aac88a6ae3fdd8e3e477305b00db6e045c8e71..785102fd2f6f5489ef30ca020526694f04a560ea 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM IM.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_IM
- *
  */
 
 /**
@@ -51,7 +49,7 @@ function civicrm_api3_im_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_im_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index 178d3c34e56551bb06e4ffc9669a704bc39edfd1..1f554eda0ff58350104bfde214d9e63ec5722914 100644 (file)
@@ -29,7 +29,6 @@
  * This api is used for triggering scheduled "cron" jobs.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Job
  */
 
 /**
@@ -38,7 +37,7 @@
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_job_create_spec(&$params) {
   $params['run_frequency']['api.required'] = 1;
@@ -107,7 +106,7 @@ function civicrm_api3_job_execute($params) {
  * Adjust Metadata for Execute action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_job_execute_spec(&$params) {
 }
@@ -184,7 +183,7 @@ function civicrm_api3_job_send_reminder($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_job_send_reminder(&$params) {
   //@todo this function will now take all fields in action_schedule as params
@@ -253,7 +252,7 @@ function civicrm_api3_job_update_greeting($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_job_update_greeting_spec(&$params) {
   $params['ct'] = array(
index cf76affa9095027de8da71bba3e5d1203fe3c47d..d5ca8d62c7b3e470a8dbaaff5164828c0e52e5bc 100644 (file)
@@ -30,7 +30,6 @@
  * This api exposes CiviCRM line item.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_LineItem
  */
 
 /**
@@ -53,7 +52,7 @@ function civicrm_api3_line_item_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_line_item_create_spec(&$params) {
   $params['entity_id']['api.required'] = 1;
@@ -84,8 +83,7 @@ function civicrm_api3_line_item_get($params) {
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *   to be deleted
+ *   Array containing id of the group to be deleted.
  *
  * @return array
  *   API result array
index 456b0826f0e9fdac6f72cbc3dc3af2ffa4c5fc2d..ccd3633b72045d665652ec0b97613359856d049a 100644 (file)
@@ -30,7 +30,6 @@
  * This api exposes CiviCRM loc_block.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_LocBlock
  */
 
 /**
index d64ab8a171510161191fb8077f056bd43ff80dc0..5293a445e87612c485129f13faa2015c37dcd185 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM location type.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_LocationType
- *
  */
 
 /**
@@ -56,7 +54,7 @@ function civicrm_api3_location_type_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_location_type_create_spec(&$params) {
   $params['is_active']['api.default'] = 1;
index 88f39c1e74c325020525ef78995261cbb8180a47..c0c6e40849dcdb109d28a029814d4a0027588b7a 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM mail settings.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_mail_settings
  */
 
 /**
@@ -51,7 +50,7 @@ function civicrm_api3_mail_settings_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mail_settings_create_spec(&$params) {
 
index c0ca2799480e20ad772e416ec0eef98edb036b13..42347376b9aa30b4cdf5b26aff29ce527f17bf87 100755 (executable)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Mailing
  */
 
 /**
@@ -101,7 +100,7 @@ function civicrm_api3_mailing_get_token($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_create_spec(&$params) {
   $params['created_id']['api.required'] = 1;
@@ -223,7 +222,7 @@ function civicrm_api3_mailing_event_bounce($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_bounce_spec(&$params) {
   $params['job_id']['api.required'] = 1;
@@ -293,7 +292,7 @@ function civicrm_api3_mailing_event_reply($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_reply_spec(&$params) {
   $params['job_id']['api.required'] = 1;
@@ -336,7 +335,7 @@ function civicrm_api3_mailing_event_forward($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_forward_spec(&$params) {
   $params['job_id']['api.required'] = 1;
@@ -561,7 +560,7 @@ function civicrm_api3_mailing_send_test($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_stats_spec(&$params) {
   $params['date']['api.default'] = 'now';
index 8b73975ebb0560f637238f711e36393bf7783d45..5e9a124075176df903570facd016b57b0d5a3934 100755 (executable)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing ab testing events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailingAB
  */
 
 /**
@@ -74,7 +73,7 @@ function civicrm_api3_mailing_a_b_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_a_b_submit_spec(&$params) {
   $mailingFields = CRM_Mailing_DAO_Mailing::fields();
@@ -166,7 +165,7 @@ function civicrm_api3_mailing_a_b_submit($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_a_b_graph_stats_spec(&$params) {
   $params['criteria']['title'] = 'Criteria';
index 93bfddab0ea367055cb1d864d3912c9662b6eb7b..3ff4c9408568eb49e1eb6fb749352fecf372f5be 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM mailing_component.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_mailing_component
  */
 
 /**
index dd7fe72a94731f7fbd8465d11a2dfad162490520..7c61428709df03440ab55c22409e55d1df8293a2 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM contact and mailing.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailingContact
- *
  */
 
 /**
@@ -73,7 +71,7 @@ function _civicrm_api3_mailing_contact_getresults($params, $count) {
  * Adjust Metadata for Get action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_contact_get_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index 9864bb9cd1b5918ed002993f15bcad6ea3ccc58e..66d354f9235b80aff765714590b9fe307c80d83d 100644 (file)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing group events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailerGroup
  */
 
 /**
@@ -63,7 +62,7 @@ function civicrm_api3_mailing_event_confirm_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_confirm_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index 6e15045df864372e1794e544b014e003aab723d9..0451abe9cf904a95cd2d12f98e41110a922fe3e3 100644 (file)
@@ -29,7 +29,6 @@
  * APIv3 functions for registering/processing mailing group events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailerGroup
  */
 
 /**
@@ -83,7 +82,7 @@ function civicrm_api3_mailing_event_queue_delete($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_queue_create_spec(&$params) {
   $params['job_id']['api.required'] = 1;
index 64a3659db6c9c21f77082177ac0e65720bf899aa..52963e655306c3f3e52b70e1b5ccc1f1e671d51a 100644 (file)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing group events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailerGroup
  */
 
 /**
@@ -66,7 +65,7 @@ function civicrm_api3_mailing_event_resubscribe_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_resubscribe_create_spec(&$params) {
   $params['event_queue_id']['api.required'] = 1;
index 564ecb3376394e0353119c00c9065c41a52e2151..ac82084461ed59a313f481c11ffe37decb832d3a 100644 (file)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing group events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailerGroup
  */
 
 /**
@@ -78,7 +77,7 @@ function civicrm_api3_mailing_event_subscribe_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_subscribe_create_spec(&$params) {
   $params['email']['api.required'] = 1;
index f6667587e5be935568b211dd4c3d522d88d36c19..322f9263b56e5347873d2d55e034c30f34acc8e6 100644 (file)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing group events.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_MailerGroup
  */
 
 /**
@@ -73,7 +72,7 @@ function civicrm_api3_mailing_event_unsubscribe_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_unsubscribe_create_spec(&$params) {
   $params['job_id']['api.required'] = 1;
index beb3f1374b73a07dfda34dce38beeb57a4631f8d..5633e5876c33f7f4a05282a68970169a4709af03 100644 (file)
@@ -30,7 +30,6 @@
  *
  * @deprecated
  * @package CiviCRM_APIv3
- * @subpackage API_MailerGroup
  */
 
 /**
index 649c311387f900b87c6d7dfb1252ae14da6437b6..fa25329aed72a254c1e1dc3ede22a066a4ed2f40 100644 (file)
@@ -30,7 +30,6 @@
  * APIv3 functions for registering/processing mailing jobs.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Mailing
  */
 
 /**
@@ -51,7 +50,7 @@ function civicrm_api3_mailing_job_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_mailing_job_create_spec(&$params) {
   $params['status']['api.default'] = 'Scheduled';
index 6b39269b05ed2b94f80d035a99637b08992f4706..7dc5d770a78346b50dfaaaae8269a5dd0e9e47d3 100644 (file)
@@ -29,7 +29,6 @@
  * APIv3 functions for registering/processing mailing recipients.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Mailing
  */
 
 
index 3951239c3153ccb5a28f7731d253e28a93200a55..3152a1b0a4d3c28449a8d4404cf3659f7db0b690 100644 (file)
@@ -30,8 +30,6 @@
  * This api exposes CiviCRM membership contact.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Membership
- *
  */
 
 /**
@@ -143,7 +141,7 @@ function civicrm_api3_membership_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_membership_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -166,7 +164,7 @@ function _civicrm_api3_membership_create_spec(&$params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_membership_get_spec(&$params) {
   $params['membership_type_id']['api.aliases'] = array('membership_type');
index 77cade9fdf993e2bd7b4430fa73f986770d16dd6..75f4c5e2e8b42d7c36ec3d6e56d64b8b587127d0 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM membership block.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Membership
- *
  */
 
 /**
@@ -52,7 +50,7 @@ function civicrm_api3_membership_block_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_membership_block_create_spec(&$params) {
   $params['is_active']['api.default'] = TRUE;
index 3eb49d042161c3671b41f59a8cdd3e9d29778bbf..1da954fc339e81219b746c65ce11890756d65c70 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM membership contribution link.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Membership
  * @todo delete function doesn't exist
  */
 
@@ -52,7 +51,7 @@ function civicrm_api3_membership_payment_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_membership_payment_create_spec(&$params) {
   $params['membership_id']['api.required'] = 1;
index 42c5172d44a507d08bd530d1def33888c7993592..8ed1b6864b5eed5d2647f9be4f06f73c43492851 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM membership status.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Membership
- *
  */
 
 /**
@@ -56,7 +54,6 @@ function civicrm_api3_membership_status_create($params) {
  *
  * @return array
  *   Array of all found membership status property values.
- *   {@getfields MembershipStatus_get}
  */
 function civicrm_api3_membership_status_get($params) {
   return _civicrm_api3_basic_get('CRM_Member_BAO_MembershipStatus', $params);
@@ -66,7 +63,7 @@ function civicrm_api3_membership_status_get($params) {
  * Update an existing membership status.
  *
  * This api is used for updating an existing membership status.
- * Required parameters : id of a membership status
+ * Required parameters: id of a membership status
  *
  * @param array $params
  *   Array of name/value property values of civicrm_membership_status.
index 5442b5610c65616bb24685aa46b277cb0aedaf05..f1d49a25376110353b788759499c1ff0aa47c901 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM membership type.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Membership
- *
  */
 
 /**
@@ -52,7 +50,7 @@ function civicrm_api3_membership_type_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_membership_type_create_spec(&$params) {
   // todo could set default here probably
index 26c4805fcb50b216f1247d3236d352b2f213ef96..1623a5ba85fe16bfa274e4b3d3c61962aff1b7cb 100644 (file)
@@ -27,7 +27,7 @@
 /**
  * This api exposes CiviCRM message_template.
  *
- * @package CiviCRM_SEPA
+ * @package CiviCRM_APIv3
  */
 
 /**
@@ -48,7 +48,7 @@ function civicrm_api3_message_template_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_message_template_create_spec(&$params) {
   $params['msg_title']['api.required'] = 1;
@@ -108,7 +108,7 @@ function civicrm_api3_message_template_send($params) {
  * validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_message_template_send_spec(&$params) {
   $params['messageTemplateID']['api.required'] = 1;
index 86fe2ee0bc244c1916dac1197e93270c173ca600..d689fdefcb72736d29f52bfcfef6ecb9b5f236cd 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM note.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Note
- *
  */
 
 /**
@@ -41,7 +39,6 @@
  *
  * @param array $params
  *   An associative array of name/value property values of civicrm_note.
- * {@getfields note_create}
  *
  * @return array
  *   API result array
@@ -56,7 +53,7 @@ function civicrm_api3_note_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_note_create_spec(&$params) {
   $params['entity_table']['api.default'] = "civicrm_contact";
@@ -102,7 +99,7 @@ function civicrm_api3_note_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_note_get_spec(&$params) {
   $params['entity_table']['api.default'] = "civicrm_contact";
index c65ffee5e3eae5f2d221d02ccc5e9e5da640adbb..e7d793709ab79b3529b743293d6a73f51650bfe1 100644 (file)
@@ -30,8 +30,6 @@
  * Each group contains option values.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_OptionValue
- *
  */
 
 /**
@@ -63,7 +61,7 @@ function civicrm_api3_option_group_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_option_group_create_spec(&$params) {
   $params['name']['api.unique'] = 1;
index 37977cf04689e755e8fef449a52d88984ed692e8..a47e8ebed57169c989284a1e09473aee5db73acf 100644 (file)
@@ -30,8 +30,6 @@
  * Values are grouped by "OptionGroup"
  *
  * @package CiviCRM_APIv3
- * @subpackage API_OptionValue
- *
  */
 
 /**
@@ -86,7 +84,7 @@ function civicrm_api3_option_value_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_option_value_create_spec(&$params) {
   $params['is_active']['api.default'] = 1;
index 3e84c789d0e45fecca25d840519dd4d87a77b624..654fb59d1d65d32ade8bda191b026eb7a9e8f896 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM participant.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Participant
- *
  */
 
 /**
@@ -137,7 +135,7 @@ function _civicrm_api3_participant_createlineitem(&$params, $participant) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_participant_create_spec(&$params) {
   $params['status_id']['api.default'] = "1";
@@ -180,7 +178,7 @@ function civicrm_api3_participant_get($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_participant_get_spec(&$params) {
   $params['participant_test']['api.default'] = 0;
index 70d2ac8e9cfa2d51c02ea10641b4d5cf4cc1bae2..92a47adbaf2255d981bdf8f9b852b3d98ec425eb 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM participant payments.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Participant
- *
  */
 
 /**
@@ -65,7 +63,7 @@ function civicrm_api3_participant_payment_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_participant_payment_create_spec(&$params) {
   $params['participant_id']['api.required'] = 1;
index 84364576849ad2c0def1f9edad32bb182c12908c..23a4a74a13275debfbd8957831995ca82bfc3073 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM participant status options.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Event
  */
 
 /**
@@ -53,9 +52,7 @@ function civicrm_api3_participant_status_type_create($params) {
  * Returns array of participant_statuses matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all participant_statuses will be returned
+ *   Array of properties. If empty, all records will be returned.
  *
  * @return array
  *   Array of matching participant_statuses
index 6ca6365098e3a15fa493f8451dda9a2f535096c5..54cdcabb8780933e2674f8f5017ca05bf038d4a9 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM PaymentProcessor.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_PaymentProcessor
- *
  */
 
 /**
@@ -51,7 +49,7 @@ function civicrm_api3_payment_processor_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_payment_processor_create_spec(&$params) {
   $params['payment_processor_type_id']['api.required'] = 1;
index 34035ef1c45b825571134a52b7f07b502a3247df..1e62e721449d45b4f40b88b4938474b8915ad71e 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM payment processor types.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Contact
  */
 
 /**
@@ -60,7 +59,7 @@ function civicrm_api3_payment_processor_type_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_payment_processor_type_create_spec(&$params) {
   $params['billing_mode']['api.required'] = 1;
index 291b603c5070b3a8a6e1fd3cc7d51c3639e21ec7..599ee8ce7c385e40c66236c2f04cafb5ec785490 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM phone.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Phone
- *
  */
 
 /**
@@ -52,7 +50,7 @@ function civicrm_api3_phone_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_phone_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -78,5 +76,4 @@ function civicrm_api3_phone_delete($params) {
  *  civicrm_api('Phone','Get') to retrieve one or more phones is implemented by
  *  function civicrm_api3_phone_get ($params) into the file Phone/Get.php
  *  Could have been implemented here in this file too, but we moved it to illustrate the feature with a real usage.
- *
  */
index afa99b2f7aeeac54714964a2517172fdef72d2ae..35f9c628f5985c223269ecee05c46d9fe91ec436 100644 (file)
@@ -1,4 +1,33 @@
 <?php
+/*
+ +--------------------------------------------------------------------+
+ | CiviCRM version 4.6                                                |
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM.                                    |
+ |                                                                    |
+ | CiviCRM is free software; you can copy, modify, and distribute it  |
+ | under the terms of the GNU Affero General Public License           |
+ | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
+ |                                                                    |
+ | CiviCRM is distributed in the hope that it will be useful, but     |
+ | WITHOUT ANY WARRANTY; without even the implied warranty of         |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License and the CiviCRM Licensing Exception along                  |
+ | with this program; if not, contact CiviCRM LLC                     |
+ | at info[AT]civicrm[DOT]org. If you have questions about the        |
+ | GNU Affero General Public License or the licensing of CiviCRM,     |
+ | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ +--------------------------------------------------------------------+
+ */
+
+/**
+ * @package CiviCRM_APIv3
+ */
 
 /**
  * Retrieve one or more phones.
index 5205c3f445ca883580ccbcb03795e47e0c60e5c0..18e1acbed46a45ed5fe3e1d44135175a9a6e91e2 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM Pledge.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Pledge
- *
  */
 
 /**
@@ -121,8 +119,6 @@ function _civicrm_api3_pledge_create_spec(&$params) {
  *
  * @return array
  *   array of pledges, if error an array with an error id and error message
- *   {@getfields pledge_get}
- * @example PledgeGet.php
  */
 function civicrm_api3_pledge_get($params) {
   $mode = CRM_Contact_BAO_Query::MODE_PLEDGE;
index ffae5a08ae59b443bf684c929b9f0926b5b12b6a..7e39ff987cc56efb06bd232e45949887b237e5a7 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM Pledge payment.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Pledge_Payment
- *
  */
 
 /**
@@ -81,7 +79,7 @@ function civicrm_api3_pledge_payment_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_pledge_payment_create_spec(&$params) {
   $params['pledge_id']['api.required'] = 1;
index fdf91aa76dee77bcf8a8860352a66822ad12f595..52827ccc1e38c555119cbbcc482c7ab3e9a505f1 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM premium.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_premium
  */
 
 /**
index d6bd9e7d773b3e8d51b57d57c99aa7acaf03d85d..e63a28cb799c2ff2b3dfb78775921db36010c0f6 100644 (file)
@@ -30,7 +30,6 @@
  * This api exposes CiviCRM price set fields.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_PriceField
  */
 
 /**
@@ -52,7 +51,7 @@ function civicrm_api3_price_field_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_price_field_create_spec(&$params) {
   $params['label']['api.required'] = TRUE;
@@ -79,8 +78,7 @@ function civicrm_api3_price_field_get($params) {
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *   to be deleted
+ *   Array containing id of the group to be deleted.
  *
  * @return array
  *   API result array
index 9161af4870ecc6098fd81ce2b51fff65cc6f45dd..a22cf7b3e33e224ca91a88d5bc33a031cba12bbe 100644 (file)
@@ -30,7 +30,6 @@
  * This api exposes CiviCRM price sets.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_PriceFieldValue
  */
 
 /**
@@ -62,7 +61,7 @@ function civicrm_api3_price_field_value_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_price_field_value_create_spec(&$params) {
   $params['price_field_id']['api.required'] = TRUE;
@@ -92,8 +91,7 @@ function civicrm_api3_price_field_value_get($params) {
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *   to be deleted
+ *   Array containing id of the group to be deleted.
  *
  * @return array
  *   API result array.
index be20e0557b735373e48fa51a0fb4dff931b6f5db..15061c4b92315bb2e8e2e1e88395dd3808491d38 100644 (file)
@@ -30,7 +30,6 @@
  * This api exposes CiviCRM price sets.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_PriceSet
  */
 
 /**
@@ -66,7 +65,7 @@ function civicrm_api3_price_set_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_price_set_create_spec(&$params) {
   $params['title']['api.required'] = TRUE;
@@ -103,8 +102,7 @@ function civicrm_api3_price_set_get($params) {
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *   to be deleted
+ *   Array containing id of the group to be deleted.
  *
  * @return array
  *   API result array
index c71d037fb7e58ec0454dc29de974bf7a1bdc8413..7090991ce38cda9e5e612f93c7d0a309fcbd72db 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM print_label.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_print_label
  */
 
 /**
index 47c7545e2730a524ce3047b0bf8727295b7769de..56a767da29a4272aa4c9e7eb4f5d33ecc82d4489 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM product.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_product
  */
 
 /**
index 3532e5dbd00dfdef5439b55af6c4c06ee4f3f88f..5c4b21764ef9b7cec47323e82db9f81178fae4c3 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM activity profile.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_ActivityProfile
  */
 
 /**
index f0b0437171ede57ad91ad1c37072f90f5fbb462a..b4e20a2558b3124b65350ee57d1f7dc7db553ff1 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM relationships.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Relationship
- *
  */
 
 /**
@@ -53,7 +51,7 @@ function civicrm_api3_relationship_create($params) {
  * Adjust Metadata for Create action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_relationship_create_spec(&$params) {
   $params['contact_id_a']['api.required'] = 1;
index 18afe90fbbdfaecbb27fa65f3346701b6653626f..d4f3c39ec2124ba026e53ce820f215a3bb570e9c 100644 (file)
@@ -29,7 +29,6 @@
  * This api exposes CiviCRM relationship types.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Contact
  */
 
 /**
@@ -75,7 +74,7 @@ function civicrm_api3_relationship_type_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_relationship_type_create_spec(&$params) {
   $params['contact_type_a']['api.required'] = 1;
index e13d66f4eec4ed1374353869cd0b5a0b2afe7d96..53a9423287a4a034b3e08e9d6afeabd0f20dc1d6 100644 (file)
@@ -28,8 +28,7 @@
 /**
  * This api exposes CiviCRM report instances.
  *
- * @package CiviCRM_APIv3_Core
- * @subpackage API_Report
+ * @package CiviCRM_APIv3
  */
 
 /**
@@ -63,7 +62,7 @@ function civicrm_api3_report_instance_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_report_instance_create_spec(&$params) {
   $params['report_id']['api.required'] = 1;
index 0e85821ef68d2885040ab72f3e8ff8b2a6cc075e..1c21ded0b41cabaaabc44b904c5979ca2338c4a4 100644 (file)
@@ -28,8 +28,7 @@
 /**
  * This api exposes CiviCRM report templates.
  *
- * @package CiviCRM_APIv3_Core
- * @subpackage API_Report
+ * @package CiviCRM_APIv3
  */
 
 /**
@@ -78,7 +77,7 @@ function civicrm_api3_report_template_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_report_template_create_spec(&$params) {
   require_once 'api/v3/OptionValue.php';
index a8343612a2f924f4afe7d2bd8a4636f5bf70de97..53a39dfbc540cab23d3f6b5acdb1a72be2e971ff 100644 (file)
@@ -28,8 +28,7 @@
 /**
  * This api exposes CiviCRM configuration settings.
  *
- * @package CiviCRM_APIv3_Core
- * @subpackage API_Settings
+ * @package CiviCRM_APIv3
  */
 
 /**
index 95e4a96fc874f12cc912b191f3ee77db87bfffb8..2be88fba14f3ae43fe10bee65ee825ac960e226a 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM sms_provider.
+ * This api exposes CiviCRM sms_provider records.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_sms_provider
  */
 
 /**
index a6e1858e1ff4309a2cdbc19344bea09c479d35f8..9bd314aed34fef833303ae4a809460743cb3528b 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM survey.
+ * This api exposes CiviCRM survey/petition records.
+ *
+ * @note Campaign component must be enabled.
+ * @note There is no "petition" api.
+ * Surveys and petitions are the same basic object and this api is used for both.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Survey
  */
 
 
@@ -52,7 +55,7 @@ function civicrm_api3_survey_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_survey_create_spec(&$params) {
   $params['title']['api.required'] = 1;
@@ -62,9 +65,7 @@ function _civicrm_api3_survey_create_spec(&$params) {
  * Returns array of surveys  matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all surveys will be returned
+ *   Array of properties. If empty, all records will be returned.
  *
  * @return array
  *   API result Array of matching surveys
index f6bdd31e49d646a0cc2267114dcd49cc37dc3f60..e834e2b1def32fd9b17aab68af307213074b8970 100644 (file)
@@ -28,8 +28,9 @@
 /**
  * This api exposes CiviCRM Survey Respondant.
  *
+ * @deprecated - api currently not supported
+ *
  * @package CiviCRM_APIv3
- * @subpackage API_Survey
  */
 
 /**
index e306cc1cd9ebfdb0d2f687ab7e1c2d02f3d970e0..661e0caf340577e12f4fec501bfd8fe53a54f46a 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM system.
+ * This api exposes CiviCRM system functionality.
  *
- * @package CiviCRM_APIv3
- * @subpackage API_Domain
+ * Includes caching, logging, and checking system functionality.
  *
+ * @package CiviCRM_APIv3
  */
 
 /**
@@ -57,7 +57,7 @@ function civicrm_api3_system_flush($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_system_flush_spec(&$params) {
   $params['triggers'] = array('title' => 'rebuild triggers (boolean)');
@@ -79,7 +79,7 @@ function _civicrm_api3_system_check_spec(&$spec) {
 }
 
 /**
- * System.Check API.
+ * System Check API.
  *
  * @param array $params
  *
index d7ff704455e089f8085a58f5ff06e5d9a4a6ec00..3aef1ab3649c15f056a48ff0eb46902db0e609c5 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM SystemLog.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_SystemLog
- *
  */
 
 /**
index e366f1063bd1c4875d2a03c7cc49e94357ce2ce2..8c0567b27bd1b96b1ef58676b9204e871ab57474 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM tag.
+ * This api exposes CiviCRM tags.
  *
- * @package CiviCRM_APIv3
- * @subpackage API_Tag
+ * Tags are used to classify CRM entities (including Contacts, Groups and Actions).
  *
+ * @note this api is for working with tags themselves. To add/remove tags from
+ * a contact or other entity, use the EntityTag api.
+ *
+ * @package CiviCRM_APIv3
  */
 
 /**
- * Add a Tag.
+ * Create or update a tag.
  *
  * Tags are used to classify CRM entities (including Contacts, Groups and Actions).
  *
index 2d5c55ed86952004044fa3fa8963c456cc646823..b29527f5dc12038825ff19ed3451ac0069f45458 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM profile field.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_UF
- *
  */
 
 /**
index 300ce89fb6fbd74c030f23bf09efb2bc835906e7..209fcada12c88d7ca3bfa19eca4e62967ce85146 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM profile group.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_UF
- *
  */
 
 /**
@@ -67,9 +65,7 @@ function civicrm_api3_uf_group_create($params) {
  * Returns array of uf groups (profiles) matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all surveys will be returned
+ *   Array of properties. If empty, all records will be returned.
  *
  * @return array
  *   Array of matching profiles
index 9245725845f257c44075f4135a7bd613f155581e..4964225e6a0f9c81bafe4d10eccf175431f79dc8 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM user framework join.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_UF
- *
  */
 
 /**
@@ -53,7 +51,7 @@ function civicrm_api3_uf_join_create($params) {
  * Adjust Metadata for Create action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  *
  * @todo - suspect module, weight don't need to be required - need to test
  */
index 776b5eff3638a029e7425e4df726568063d945db..795d9e836517b469d53ce4773d14e0f9bbf99fbb 100644 (file)
@@ -29,8 +29,6 @@
  * This api exposes CiviCRM user framework match.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_UF
- *
  */
 
 /**
@@ -63,7 +61,7 @@ function civicrm_api3_uf_match_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_uf_match_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index 4075573e4e033ec12da179eb8b17e065d7f357f8..8ce2cfc0b2b7826c003b31499ce38000dde36c1a 100644 (file)
  */
 
 /**
- * This api exposes CiviCRM website.
+ * This api exposes CiviCRM website records.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Website
- *
  */
 
 /**
@@ -57,7 +55,7 @@ function civicrm_api3_website_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_website_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index e4aad58bcc68a6921aea30a35029a80dfdb91523..1398c82fa072a0d70f98cfb464b87b49087ce6ce 100644 (file)
 /**
  * This api exposes CiviCRM word replacement.
  *
- * @package CiviCRM_APIv3
- * @subpackage API_WordReplacement
+ * Word-replacements are used to globally alter strings in the CiviCRM UI.
+ * Note that the original source string is always English, regardless of language settings.
  *
+ * @package CiviCRM_APIv3
  */
 
 /**
@@ -67,7 +68,7 @@ function civicrm_api3_word_replacement_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_word_replacement_create_spec(&$params) {
   unset($params['version']);
index ffe7f8d8730b06aac4d7ff2accc28545b0848334..988016a1f38fec78f83d9bdab1c2ecf257c2e5c5 100644 (file)
  */
 
 /**
- * File for CiviCRM APIv3 utilitity functions
+ * CiviCRM APIv3 utility functions.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_utils
- *
  */
 
 /**
@@ -1635,7 +1633,7 @@ function _civicrm_api3_validate_unique_key(&$params, &$fieldName) {
  * Replace the old set of entities (matching some given keys) with a new set of
  * entities (matching the same keys).
  *
- * Note: This will verify that 'values' is present, but it does not directly verify
+ * @note This will verify that 'values' is present, but it does not directly verify
  * any other parameters.
  *
  * @param string $entity