INFRA-132 - api - Convert single-line @param to multi-line
authorTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 19:41:38 +0000 (11:41 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 23:04:24 +0000 (15:04 -0800)
92 files changed:
api/api.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/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/Generic.php
api/v3/Generic/Getlist.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/MailingContact.php
api/v3/MailingEventConfirm.php
api/v3/MailingEventQueue.php
api/v3/MailingEventResubscribe.php
api/v3/MailingEventSubscribe.php
api/v3/MailingEventUnsubscribe.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/PriceField.php
api/v3/PriceFieldValue.php
api/v3/PriceSet.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/Survey.php
api/v3/SurveyRespondant.php
api/v3/System.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 79f3f5c381928a7fcf6de746d57594dc2a2e1b21..119ce3985e51172b28947e4b756421ccda020257 100644 (file)
@@ -28,9 +28,12 @@ function civicrm_api($entity, $action, $params, $extra = NULL) {
 /**
  * Version 3 wrapper for civicrm_api. Throws exception
  *
- * @param string $entity type of entities to deal with
- * @param string $action create, get, delete or some special action name.
- * @param array $params array to be passed to function
+ * @param string $entity
+ *   Type of entities to deal with.
+ * @param string $action
+ *   Create, get, delete or some special action name.
+ * @param array $params
+ *   Array to be passed to function.
  *
  * @throws CiviCRM_API3_Exception
  * @return array
@@ -150,7 +153,8 @@ function _civicrm_api_replace_variables($entity, $action, &$params, &$parentResu
 /**
  * Convert possibly camel name to underscore separated entity name
  *
- * @param string $entity entity name in various formats e.g. Contribution, contribution, OptionValue, option_value, UFJoin, uf_join
+ * @param string $entity
+ *   Entity name in various formats e.g. Contribution, contribution, OptionValue, option_value, UFJoin, uf_join.
  * @return string $entity entity name in underscore separated format
  *
  * FIXME: Why isn't this called first thing in civicrm_api wrapper?
@@ -171,7 +175,8 @@ function _civicrm_api_get_entity_name_from_camel($entity) {
 
 /**
  * Having a DAO object find the entity name
- * @param object $bao DAO being passed in
+ * @param object $bao
+ *   DAO being passed in.
  * @return string
  */
 function _civicrm_api_get_entity_name_from_dao($bao){
index 8c5b188b2cc18e0fa2f684776fb9caa01ffcfd1c..4fb71d22240cb9980c5835edb69156261f739805 100644 (file)
@@ -67,7 +67,8 @@ function civicrm_api3_action_schedule_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_action_schedule_create_spec(&$params) {
   $params['title']['api.required'] = TRUE;
@@ -79,7 +80,8 @@ function _civicrm_api3_action_schedule_create_spec(&$params) {
 /**
  * delete an existing action_schedule
  *
- * @param array $params array containing id of the action_schedule
+ * @param array $params
+ *   Array containing id of the action_schedule.
  * to be deleted
  *
  * @return array API result array
index ad360869951434f9b62edfff4fa2201570c1df30..5c72c36c36a7723d2b61ccaa3f8a6e4126b0cfbb 100644 (file)
@@ -41,7 +41,8 @@
 /**
  * Creates or updates an Activity. See the example for usage
  *
- * @param array $params Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs for the activity.
  * {@getfields activity_create}
  *
@@ -177,7 +178,8 @@ function civicrm_api3_activity_create($params) {
 /**
  * Specify Meta data for create. Note that this data is retrievable via the getfields function
  * and is used for pre-filling defaults and ensuring mandatory requirements are met.
- * @param array $params (reference) array of parameters determined by getfields
+ * @param array $params
+ *   (reference) array of parameters determined by getfields.
  */
 function _civicrm_api3_activity_create_spec(&$params) {
 
@@ -212,7 +214,8 @@ function _civicrm_api3_activity_create_spec(&$params) {
 /**
  * Gets a CiviCRM activity according to parameters
  *
- * @param array  $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs for the activity.
  *
  * @return array
@@ -248,7 +251,8 @@ function civicrm_api3_activity_get($params) {
  *
  * NOTE: Called by civicrm-core and CiviHR
  *
- * @param array $params API request parameters
+ * @param array $params
+ *   API request parameters.
  * @param array $activities
  * @return array new activities list
  */
@@ -303,7 +307,8 @@ function _civicrm_api3_activity_get_formatResult($params, $activities) {
 /**
  * Delete a specified Activity.
  *
- * @param array $params array holding 'id' of activity to be deleted
+ * @param array $params
+ *   Array holding 'id' of activity to be deleted.
  * {@getfields activity_delete}
  *
  * @throws API_Exception
@@ -328,7 +333,8 @@ function civicrm_api3_activity_delete($params) {
 /**
  * Check for required params
  *
- * @param array $params associated array of fields
+ * @param array $params
+ *   Associated array of fields.
  *
  * @throws API_Exception
  * @throws Exception
@@ -438,7 +444,8 @@ SELECT  count(*)
 /**
  * @see _civicrm_api3_generic_getlist_params.
  *
- * @param $request array
+ * @param $request
+ *   Array.
  */
 function _civicrm_api3_activity_getlist_params(&$request) {
   $fieldsToReturn = array('activity_date_time', 'activity_type_id', 'subject', 'source_contact_id');
@@ -453,8 +460,10 @@ function _civicrm_api3_activity_getlist_params(&$request) {
 /**
  * @see _civicrm_api3_generic_getlist_output
  *
- * @param $result array
- * @param $request array
+ * @param $result
+ *   Array.
+ * @param $request
+ *   Array.
  *
  * @return array
  */
index b9f744b9362349a1dc19e1f8fc0d45487ed1f44f..5d24f2c1f4b1318bed9c1fda63c6212030b3385f 100644 (file)
@@ -56,7 +56,8 @@ function civicrm_api3_activity_contact_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_activity_contact_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -66,7 +67,7 @@ function _civicrm_api3_activity_contact_create_spec(&$params) {
 /**
  * Deletes an existing ActivityContact record
  *
- * @param  array  $params
+ * @param array $params
  *
  * @return array Api Result
  *
@@ -82,7 +83,8 @@ function civicrm_api3_activity_contact_delete($params) {
  *
  * @example ActivityContact.php
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found tags else error
  *
index aedc172033c5cf1a5124fda47676a31b2d2e7599..70ae8fcce370e901f159d14d19b2c9cf0b859e1b 100644 (file)
@@ -64,7 +64,8 @@ function civicrm_api3_activity_type_get($params) {
 /**
  * create activity type (
  *
- * @param array   $params  associated array of fields
+ * @param array $params
+ *   Associated array of fields.
  *                 $params['option_value_id'] is required for updation of activity type
  *
  * @return array $activityType created / updated activity type
@@ -92,7 +93,8 @@ function civicrm_api3_activity_type_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_activity_type_create_spec(&$params) {
   $params['label']['api.required'] = 1;
@@ -104,7 +106,8 @@ function _civicrm_api3_activity_type_create_spec(&$params) {
 /**
  * delete activity type
  *
- * @param array $params array including id of activity_type to delete
+ * @param array $params
+ *   Array including id of activity_type to delete.
 
  * @return array API result array
  *
index 9efba4db6e93f353fe3544529bb710f9cf18a5c2..69ce06da13124f1a14cb23f82c68b9ef2fcca1d3 100644 (file)
@@ -95,7 +95,8 @@ function civicrm_api3_address_create(&$params) {
 /**
  * Adjust Metadata for Create action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_address_create_spec(&$params) {
   $params['location_type_id']['api.required'] = 1;
@@ -111,7 +112,8 @@ function _civicrm_api3_address_create_spec(&$params) {
 /**
  * Adjust Metadata for Get action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_address_get_spec(&$params) {
   $params['world_region'] = array(
@@ -124,7 +126,7 @@ function _civicrm_api3_address_get_spec(&$params) {
 /**
  * Deletes an existing Address
  *
- * @param  array  $params
+ * @param array $params
  *
  * {@getfields address_delete}
  * {@example AddressDelete.php 0}
@@ -140,10 +142,11 @@ function civicrm_api3_address_delete($params) {
  * Retrieve one or more addresses on address_id, contact_id, street_name, city
  * or a combination of those
  *
- * @param  mixed[]  (reference ) input parameters
+ * @param mixed[] (reference ) input parameters
  *
  * {@example AddressGet.php 0}
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found addresses else error
  * {@getfields address_get}
index 0972d8255b048cd4f4d603fcf94123b0ee920902..53bac35603bc4717325d7df36dee9198501676d3 100644 (file)
@@ -73,7 +73,8 @@
 /**
  * Adjust metadata for "create" action
  *
- * @param array $spec list of fields
+ * @param array $spec
+ *   List of fields.
  */
 function _civicrm_api3_attachment_create_spec(&$spec) {
   $spec = array_merge($spec, _civicrm_api3_attachment_getfields());
@@ -87,7 +88,7 @@ function _civicrm_api3_attachment_create_spec(&$spec) {
 /**
  * Create an attachment
  *
- * @param  array $params
+ * @param array $params
  * @return array of newly created file property values.
  * @access public
  * @throws API_Exception validation errors
@@ -154,7 +155,8 @@ function civicrm_api3_attachment_create($params) {
 /**
  * Adjust metadata for "create" action
  *
- * @param array $spec list of fields
+ * @param array $spec
+ *   List of fields.
  */
 function _civicrm_api3_attachment_get_spec(&$spec) {
   $spec = array_merge($spec, _civicrm_api3_attachment_getfields());
@@ -232,8 +234,10 @@ function civicrm_api3_attachment_delete($params) {
 /**
  * @param array $params
  * @param int|null $id the user-supplied ID of the attachment record
- * @param array $file the user-supplied vales for the file (mime_type, description, upload_date)
- * @param array $entityFile the user-supllied values of the entity-file (entity_table, entity_id)
+ * @param array $file
+ *   The user-supplied vales for the file (mime_type, description, upload_date).
+ * @param array $entityFile
+ *   The user-supllied values of the entity-file (entity_table, entity_id).
  * @param bool $isTrusted
  * @return CRM_Core_DAO
  * @throws API_Exception
@@ -349,10 +353,14 @@ function _civicrm_api3_attachment_parse_params($params) {
 }
 
 /**
- * @param CRM_Core_DAO_File $fileDao maybe "File" or "File JOIN EntityFile"
- * @param CRM_Core_DAO_EntityFile $entityFileDao maybe "EntityFile" or "File JOIN EntityFile"
- * @param bool $returnContent whether to return the full content of the file
- * @param bool $isTrusted whether the current request is trusted to perform file-specific operations
+ * @param CRM_Core_DAO_File $fileDao
+ *   Maybe "File" or "File JOIN EntityFile".
+ * @param CRM_Core_DAO_EntityFile $entityFileDao
+ *   Maybe "EntityFile" or "File JOIN EntityFile".
+ * @param bool $returnContent
+ *   Whether to return the full content of the file.
+ * @param bool $isTrusted
+ *   Whether the current request is trusted to perform file-specific operations.
  * @return array
  */
 function _civicrm_api3_attachment_format_result($fileDao, $entityFileDao, $returnContent, $isTrusted) {
index fe47e357da2a00e9a717cc8f80572009aeb871f0..ced1fb2b04b49a498b82d4fdf08e7b30692d843d 100644 (file)
@@ -54,7 +54,8 @@ function civicrm_api3_batch_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or 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 7ba0f54d38a446bee19591199ae64b1eb8800b9f..e1eec08156551d0014603653176df883254e8ccd 100644 (file)
@@ -41,7 +41,8 @@
  * In case of updating existing campaign, id of that particular campaign must
  * be in $params array.
  *
- * @param array $params  (reference) Associative array of property
+ * @param array $params
+ *   (reference) Associative array of property.
  *                       name/value pairs to insert in new 'campaign'
  *
  * @return array   campaign array
@@ -56,7 +57,8 @@ function civicrm_api3_campaign_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_campaign_create_spec(&$params) {
   $params['title']['api.required'] = 1;
@@ -65,7 +67,8 @@ function _civicrm_api3_campaign_create_spec(&$params) {
 /**
  * Returns array of campaigns  matching a set of one or more group properties
  *
- * @param array $params Array of one or more valid
+ * @param array $params
+ *   Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all campaigns will be returned
  *
@@ -83,7 +86,8 @@ function civicrm_api3_campaign_get($params) {
  * This method is used to delete any existing campaign. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params
+ *   (reference) array containing id of the group.
  *                       to be deleted
  *
  * @return array  (reference) returns flag true if successful, error
index 4e8790baa3d48e7c618df7176873e3c62fea4390..96d0e70f425481a39d6983f551f233aaf28dea79 100644 (file)
@@ -40,7 +40,7 @@
 /**
  * Open a new case, add client and manager roles, and add standard timeline
  *
- * @param  array (
+ * @param array (
  * //REQUIRED:
  * 'case_type_id' => int OR
  * 'case_type' => str (provide one or the other)
@@ -130,7 +130,8 @@ function civicrm_api3_case_create($params) {
 /**
  * Adjust Metadata for Get Action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_case_get_spec(&$params) {
   $params['contact_id']['api.aliases'] = array('client_id');
@@ -140,7 +141,8 @@ function _civicrm_api3_case_get_spec(&$params) {
 /**
  * Adjust Metadata for Create Action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_case_create_spec(&$params) {
   $params['contact_id']['api.aliases'] = array('client_id');
@@ -161,7 +163,8 @@ function _civicrm_api3_case_create_spec(&$params) {
 /**
  * Adjust Metadata for Update action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_case_update_spec(&$params) {
   $params['id']['api.required'] = 1;
@@ -170,7 +173,8 @@ function _civicrm_api3_case_update_spec(&$params) {
 /**
  * Adjust Metadata for Delete action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_case_delete_spec(&$params) {
   $params['id']['api.required'] = 1;
@@ -291,7 +295,7 @@ function _civicrm_api3_case_deprecation() {
 /**
  * Update a specified case.
  *
- * @param  array (
+ * @param array (
  * //REQUIRED:
  * 'case_id' => int
  *
@@ -359,7 +363,7 @@ function civicrm_api3_case_update($params) {
 /**
  * Delete a specified case.
  *
- * @param  array (
+ * @param array (
  * //REQUIRED:
  * 'id' => int
  *
index d30af7c13947e49ce82170929c3ae5a4816f938c..d48a60328e88e46cf1b484641da950d002138ee3 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * create or update case type
  *
- * @param  array $params   input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * Allowed @params array keys are:
  * {@getfields case_type_create}
@@ -108,7 +109,8 @@ function _civicrm_api3_case_type_get_formatResult(&$result) {
 /**
  * Function to delete case type
  *
- * @param array $params array including id of case_type to delete
+ * @param array $params
+ *   Array including id of case_type to delete.
 
  * @return array API result array
  *
index f6a5d9e84485059ced825aa854f3cbd73f904dfc..e3dbcd3ca39ab9bea93aefe892f3f2807aa2894e 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Create or update a contact (note you should always call this via civicrm_api() & never directly)
  *
- * @param  array $params input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * Allowed @params array keys are:
  * {@getfields contact_create}
@@ -116,7 +117,8 @@ function civicrm_api3_contact_create($params) {
 /**
  * Adjust Metadata for Create action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contact_create_spec(&$params) {
   $params['contact_type']['api.required'] = 1;
@@ -137,7 +139,7 @@ function _civicrm_api3_contact_create_spec(&$params) {
 /**
  * Retrieve one or more contacts, given a set of search params
  *
- * @param  array  input parameters
+ * @param array input parameters
  *
  * @return array API Result Array
  * (@getfields contact_get}
@@ -169,7 +171,8 @@ function civicrm_api3_contact_getcount($params) {
 /**
  * Adjust Metadata for Get action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contact_get_spec(&$params) {
   $params['contact_is_deleted']['api.default'] = 0;
@@ -221,8 +224,10 @@ function _civicrm_api3_contact_get_spec(&$params) {
  *
  * We also support 'filter_group_id' & 'filter.group_id'
  *
- * @param array $params as passed into api get or getcount function
- * @param array $options array of options (so we can modify the filter)
+ * @param array $params
+ *   As passed into api get or getcount function.
+ * @param array $options
+ *   Array of options (so we can modify the filter).
  */
 function _civicrm_api3_contact_get_supportanomalies(&$params, &$options) {
   if (isset($params['showAll'])) {
@@ -257,7 +262,8 @@ function _civicrm_api3_contact_get_supportanomalies(&$params, &$options) {
 /**
  * Delete a contact with given contact id
  *
- * @param  array       $params (reference ) input parameters, contact_id element required
+ * @param array $params
+ *   (reference ) input parameters, contact_id element required.
  *
  * @return array API Result Array
  * @access public
@@ -393,8 +399,10 @@ function _civicrm_api3_contact_check_params( &$params, $dupeCheck = true, $dupeE
  * Takes an associative array and creates a contact object and all the associated
  * derived objects (i.e. individual, location, email, phone etc)
  *
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param  int     $contactID        if present the contact with that ID is updated
+ * @param array $params
+ *   (reference ) an assoc array of name/value pairs.
+ * @param int $contactID
+ *   If present the contact with that ID is updated.
  *
  * @return CRM_Contact_BAO_Contact object
  * @access public
@@ -412,7 +420,8 @@ function _civicrm_api3_contact_update($params, $contactID = NULL) {
 /**
  * Validate the addressee or email or postal greetings
  *
- * @param  array $params  Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                                   pairs to insert in new contact.
  *
  * @throws API_Exception
@@ -849,7 +858,8 @@ function _civicrm_api3_contact_deprecation() {
 /**
  * Merges given pair of duplicate contacts.
  *
- * @param  array   $params   input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * Allowed @params array keys are:
  * {int     main_id     main contact id with whom merge has to happen}
@@ -946,7 +956,8 @@ WHERE     $whereClause
 /**
  * @see _civicrm_api3_generic_getlist_params
  *
- * @param $request array
+ * @param $request
+ *   Array.
  */
 function _civicrm_api3_contact_getlist_params(&$request) {
   // get the autocomplete options from settings
@@ -989,8 +1000,10 @@ function _civicrm_api3_contact_getlist_params(&$request) {
 /**
  * @see _civicrm_api3_generic_getlist_output
  *
- * @param $result array
- * @param $request array
+ * @param $result
+ *   Array.
+ * @param $request
+ *   Array.
  *
  * @return array
  */
index fede1f2ceb4a146eec1400dc6b9eacd2709424ec..f3357af3d2f290bd9e6efa27fa4a10cd0e93847f 100644 (file)
@@ -41,7 +41,8 @@
  * In case of updating existing contact_type, id of that particular contact_type must
  * be in $params array.
  *
- * @param array $params  (reference) Associative array of property
+ * @param array $params
+ *   (reference) Associative array of property.
  *                       name/value pairs to insert in new 'contact_type'
  *
  * @return array   contact_type array
@@ -67,7 +68,8 @@ function civicrm_api3_contact_type_create($params) {
 /**
  * Returns array of contact_types  matching a set of one or more group properties
  *
- * @param array $params one or more valid
+ * @param array $params
+ *   One or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all contact_types will be returned
  *
@@ -85,7 +87,8 @@ function civicrm_api3_contact_type_get($params) {
  * This method is used to delete any existing contact_type. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array  API Result Array
index c553702a6889b3c9f58779e4777dac30723fbdb7..6385630dd89881c0a8d0944ba84fedc39610851b 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Add or update a contribution
  *
- * @param  array $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @throws API_Exception
  * @return array  Api result array
@@ -77,7 +78,8 @@ function civicrm_api3_contribution_create(&$params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -171,7 +173,8 @@ function _civicrm_api3_contribution_create_legacy_support_45(&$params){
 /**
  * Delete a contribution
  *
- * @param  array   $params           (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return boolean        true if success, else false
  * @static void
@@ -200,7 +203,8 @@ function _civicrm_api3_contribution_delete_spec(&$params) {
 /**
  * Retrieve a set of contributions, given a set of input params
  *
- * @param  array $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array of contributions, if error an array with an error id and error message
  * @static void
@@ -245,7 +249,8 @@ function _civicrm_api3_format_soft_credit(&$contribution) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_get_spec(&$params) {
   $params['contribution_test']['api.default'] = 0;
@@ -260,9 +265,11 @@ function _civicrm_api3_contribution_get_spec(&$params) {
  * take the input parameter list as specified in the data model and
  * convert it into the same format that we use in QF and BAO object
  *
- * @param array $params Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  * pairs to insert in new contact.
- * @param array $values The reformatted properties that we can use internally
+ * @param array $values
+ *   The reformatted properties that we can use internally.
  * '
  *
  * @param bool $create
@@ -280,7 +287,8 @@ function _civicrm_api3_contribute_format_params($params, &$values, $create = FAL
  * Adjust Metadata for Transact action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_transact_spec(&$params) {
   $fields = civicrm_api3('contribution', 'getfields', array('action' => 'create'));
@@ -291,7 +299,8 @@ function _civicrm_api3_contribution_transact_spec(&$params) {
 /**
  * Process a transaction and record it against the contact.
  *
- * @param  array   $params           (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array (reference )        contribution of created or updated record (or a civicrm error)
  * @static void
@@ -342,7 +351,8 @@ function civicrm_api3_contribution_transact($params) {
  * The appropriate online template will be used (the existence of related objects
  * (e.g. memberships ) will affect this selection
  *
- * @param array $params input parameters
+ * @param array $params
+ *   Input parameters.
  * {@getfields Contribution_sendconfirmation}
  *
  * @throws Exception
@@ -365,7 +375,8 @@ function civicrm_api3_contribution_sendconfirmation($params) {
  * Adjust Metadata for sendconfirmation action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_sendconfirmation_spec(&$params) {
   $params['id'] = array(
@@ -397,7 +408,8 @@ function _civicrm_api3_contribution_sendconfirmation_spec(&$params) {
  * @todo - most of this should live in the BAO layer but as we want it to be an addition
  * to 4.3 which is already stable we should add it to the api layer & re-factor into the BAO layer later
  *
- * @param array $params input parameters
+ * @param array $params
+ *   Input parameters.
  * {@getfields Contribution_completetransaction}
  *
  * @throws API_Exception
index 9e1b49000aad6f912a266939a9cef86c3eb7a250..e8e609919e373f8d6e038fa6b68deca722f1b680 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a contribution_page
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'contribution_page'
  * @example ContributionPageCreate.php Std Create example
  *
@@ -57,7 +58,8 @@ function civicrm_api3_contribution_page_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_page_create_spec(&$params) {
   $params['financial_type_id']['api.required'] = 1;
@@ -68,7 +70,8 @@ function _civicrm_api3_contribution_page_create_spec(&$params) {
 /**
  * Returns array of contribution_pages  matching a set of one or more group properties
  *
- * @param array $params Array of one or more valid property_name=>value pairs.
+ * @param array $params
+ *   Array of one or more valid property_name=>value pairs.
  *
  * @return array API Result array Array of matching contribution_pages
  * {@getfields contribution_page_get}
@@ -84,7 +87,8 @@ function civicrm_api3_contribution_page_get($params) {
  * This method is used to delete any existing contribution_page. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array API result Array
@@ -101,7 +105,8 @@ function civicrm_api3_contribution_page_delete($params) {
  * This method is used to delete any existing contribution_page. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params
+ *   (reference) array containing id of the group.
  *                       to be deleted
  *
  * @return array API result array
index e3ace26f980d2af4c89daab573bbe647d78e8516..042f9b5bf6e6d484173e50d1a5230606e28139f6 100644 (file)
@@ -36,7 +36,8 @@
 /**
  * Create or update a contribution_recur
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'contribution_recur'
  * @example ContributionRecurCreate.php Std Create example
  *
@@ -52,7 +53,8 @@ function civicrm_api3_contribution_recur_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_recur_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -64,7 +66,8 @@ 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
+ * @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
  *
@@ -79,7 +82,8 @@ function civicrm_api3_contribution_recur_get($params) {
 /**
  * Cancel a recurring contribution of existing contribution_recur.id
  *
- * @param array    $params (reference) array containing id of the recurring contribution
+ * @param array $params
+ *   (reference) array containing id of the recurring contribution.
  *
  * @return boolean  returns true is successfully cancelled
  */
@@ -95,7 +99,8 @@ function civicrm_api3_contribution_recur_cancel($params) {
  * This method is used to delete any existing contribution_recur. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array API result array
index 0bb378bf859ec6de6263915fe1932481c1b338eb..e757492b1bcff49e3a000a69c745e5324da1d68e 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Create or Update a Soft Credit
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'contribution_soft'
  *
  * @example ContributionSoftCreate.php Standard Create Example //FIXME
@@ -57,7 +58,8 @@ function civicrm_api3_contribution_soft_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_contribution_soft_create_spec(&$params) {
   $params['contribution_id']['api.required'] = 1;
@@ -68,7 +70,7 @@ function _civicrm_api3_contribution_soft_create_spec(&$params) {
 /**
  * Deletes an existing Soft Credit
  *
- * @param  array  $params
+ * @param array $params
  *
  * @example ContributionSoftDelete.php Standard Delete Example
  *
@@ -85,12 +87,13 @@ function civicrm_api3_contribution_soft_delete($params) {
 /**
  * Retrieve one or more Soft Credits
  *
- * @param  array input parameters
+ * @param array input parameters
  *
  *
  * @example ContributionSoftGet.php Standard Get Example
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array api result
  * {@getfields contribution_soft_get}
index ec6c40f22c89cf0b21a7eb2a524bbe157fbae3c1..38242c6855bf4936a2ecb5bb17e8bb0fb85c0ae3 100644 (file)
@@ -58,7 +58,8 @@ function civicrm_api3_country_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_country_create_spec(&$params) {
   $params['name']['api.required'] = 1;
@@ -67,7 +68,7 @@ function _civicrm_api3_country_create_spec(&$params) {
 /**
  * Deletes an existing Country
  *
- * @param  array  $params
+ * @param array $params
  *
  * @example CountryDelete.php Standard Delete Example
  *
@@ -82,12 +83,13 @@ function civicrm_api3_country_delete($params) {
 /**
  * Retrieve one or more countrys
  *
- * @param  array input parameters
+ * @param array input parameters
  *
  *
  * @example CountryGet.php Standard Get Example
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array api result array
  * {@getfields country_get}
index bb2719ba974b5475a549c2fadc6e854faa1f7ac1..0672cfde624e239c3a1d5dea893d387d44887bee 100644 (file)
@@ -41,7 +41,8 @@
  * as parameters. Some of the most commonly used parameters are
  * described below
  *
- * @param array $params           an associative array used in construction
+ * @param array $params
+ *   An associative array used in construction.
  * retrieval of the object
  *
  */
@@ -52,7 +53,8 @@
  * function after deletion so that the field is available for us (getfields manages date conversion
  * among other things
  *
- * @param $params array  Associative array of property name/value pairs to create new custom field.
+ * @param $params
+ *   Array Associative array of property name/value pairs to create new custom field.
  *
  * @return Newly API success object
  *
@@ -91,7 +93,8 @@ function _civicrm_api3_custom_field_flush_static_caches(){
 /**
  * Adjust Metadata for Create action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_custom_field_create_spec(&$params) {
   $params['label']['api.required'] = 1;
@@ -109,7 +112,8 @@ function _civicrm_api3_custom_field_create_spec(&$params) {
 /**
  * Use this API to delete an existing custom group field.
  *
- * @param $params     Array id of the field to be deleted
+ * @param $params
+ *   Array id of the field to be deleted.
  *
  * @return array
  * @example CustomFieldDelete.php
@@ -131,7 +135,8 @@ function civicrm_api3_custom_field_delete($params) {
 /**
  * Use this API to get existing custom fields.
  *
- * @param array $params Array to search on
+ * @param array $params
+ *   Array to search on.
  *{*
  *
  * @return array
@@ -147,10 +152,14 @@ function civicrm_api3_custom_field_get($params) {
  * Helper function to validate custom field value
  * @deprecated
  *
- * @param String $fieldName    Custom field name (eg: custom_8 )
- * @param Mixed  $value        Field value to be validate
- * @param Array  $fieldDetails Field Details
- * @param Array  $errors       Collect validation  errors
+ * @param string $fieldName
+ *   Custom field name (eg: custom_8 ).
+ * @param mixed $value
+ *   Field value to be validate.
+ * @param array $fieldDetails
+ *   Field Details.
+ * @param array $errors
+ *   Collect validation errors.
  *
  * @return array  Validation errors
  * @todo remove this function - not in use but need to review functionality before
index 736f7a80001087b8306c8c3671d41cc32edcab20..489f49391f70184b7128d771a6e6e1f85b691c15 100644 (file)
@@ -41,7 +41,8 @@
  * as parameters. Some of the most commonly used parameters are
  * described below
  *
- * @param array $params           an associative array used in construction
+ * @param array $params
+ *   An associative array used in construction.
  * retrieval of the object
  * @todo missing get function
  *
@@ -55,7 +56,8 @@
  * See the CRM Data Model for custom_group property definitions
  * $params['class_name'] is a required field, class being extended.
  *
- * @param $params     array   Associative array of property name/value pairs to insert in group.
+ * @param $params
+ *   Array Associative array of property name/value pairs to insert in group.
  * {@getfields CustomGroup_create}
  *
  * @return   Newly create custom_group object
@@ -82,7 +84,8 @@ function civicrm_api3_custom_group_create($params) {
 /**
  * Adjust Metadata for Create action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_custom_group_create_spec(&$params) {
   $params['extends']['api.required'] = 1;
@@ -114,7 +117,8 @@ function civicrm_api3_custom_group_delete($params) {
 /**
  * Use this API to get existing custom fields.
  *
- * @param array $params Array to search on
+ * @param array $params
+ *   Array to search on.
  *
  * @return array
  * @access public
index c47b80aa7e3088438de566b334efdc868b47270f..d4573923d7dfbb0806cdf4fc056c8e3ff7c31e98 100644 (file)
@@ -51,7 +51,8 @@ function civicrm_api3_custom_search_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_custom_search_create_spec(&$params) {
   require_once 'api/v3/OptionValue.php';
@@ -65,7 +66,7 @@ function _civicrm_api3_custom_search_create_spec(&$params) {
 /**
  * Deletes an existing ReportTemplate
  *
- * @param  array  $params
+ * @param array $params
  *
  * {@example ReportTemplateDelete.php 0}
  *
index 637301db90aab20a26957dbd709f590e6b79bc98..5aac497d5baf1a45e0f237c2fcad322df1d43ed0 100644 (file)
@@ -45,7 +45,8 @@
  * Sets custom values for an entity.
  *
  *
- * @param $params  expected keys are in format custom_fieldID:recordID or custom_groupName:fieldName:recordID
+ * @param $params
+ *   Expected keys are in format custom_fieldID:recordID or custom_groupName:fieldName:recordID.
  * for example:
  * // entity ID. You do not need to specify entity type, we figure it out based on the fields you're using
  * 'entity_id' => 123,
@@ -117,7 +118,8 @@ function civicrm_api3_custom_value_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_custom_value_create_spec(&$params) {
   $params['entity_id']['api.required'] = 1;
@@ -127,7 +129,8 @@ function _civicrm_api3_custom_value_create_spec(&$params) {
 /**
  * Use this API to get existing custom values for an entity.
  *
- * @param $params  array specifying the entity_id
+ * @param $params
+ *   Array specifying the entity_id.
  * Optionally include entity_type param, i.e. 'entity_type' => 'Activity'
  * If no entity_type is supplied, it will be determined based on the fields you request.
  * If no entity_type is supplied and no fields are specified, 'Contact' will be assumed.
@@ -232,7 +235,8 @@ function civicrm_api3_custom_value_get($params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_custom_value_get_spec(&$params) {
   $params['entity_id']['api.required'] = 1;
index 784e478bfe916350cb7431d21815847818846874..c2790acade67c7b846348fb637fc9c673457b96c 100644 (file)
@@ -41,7 +41,8 @@
 /**
  * Creates or updates an Dashlet.
  *
- * @param array  $params array of property name/value
+ * @param array $params
+ *   Array of property name/value.
  *                             pairs for the Dashlet.
  *
  * @return array Array containing 'is_error' to denote success or failure and details of the created activity
@@ -61,7 +62,8 @@ function civicrm_api3_dashboard_create($params) {
 /**
  * Specify Meta data for create. Note that this data is retrievable via the getfields function
  * and is used for pre-filling defaults and ensuring mandatory requirements are met.
- * @param array $params (reference) array of parameters determined by getfields
+ * @param array $params
+ *   (reference) array of parameters determined by getfields.
  */
 function _civicrm_api3_dashboard_create_spec(&$params) {
   unset($params['version']);
@@ -70,7 +72,8 @@ function _civicrm_api3_dashboard_create_spec(&$params) {
 /**
  * Gets a CiviCRM Dashlets according to parameters
  *
- * @param array  $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs for the activity.
  *
  * @return array
@@ -86,7 +89,8 @@ function civicrm_api3_dashboard_get($params) {
 /**
  * Delete a specified Dashlet.
  *
- * @param array $params array holding 'id' OR 'name' of dashlet to be deleted
+ * @param array $params
+ *   Array holding 'id' OR 'name' of dashlet to be deleted.
  *
  * @return void|CRM_Core_Error  An error if 'name or ID' is invalid,
  *
index 83492f90aac40f02c1afccf812544e89415cb63c..6ee8662c7158789275cc34347eff4f6adac9b54a 100644 (file)
@@ -63,7 +63,8 @@ function civicrm_api3_dashboard_contact_create($params) {
 /**
  * Gets a CiviCRM Dashlets of Contacts according to parameters
  *
- * @param array  $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs for the activity.
  *
  * @return array
@@ -77,7 +78,8 @@ function civicrm_api3_dashboard_contact_get($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_dashboard_contact_create_spec(&$params) {
   unset($params['version']);
index 06f28a2b019a040f0413c0f966dcbf4f0bb7d31e..a7ef5b0c4fdf7bf4e3ed2e324084c28d8837fd31 100644 (file)
@@ -116,7 +116,8 @@ function civicrm_api3_domain_get($params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_domain_get_spec(&$params) {
   $params['current_domain'] = array('title' => "get loaded domain");
@@ -140,7 +141,8 @@ function civicrm_api3_domain_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_domain_create_spec(&$params) {
   $params['domain_version'] = $params['version'];
index 1a5ce145998ae03a8309e8f6e0eebc0ccc0156ec..767f4b6623bc95631d21f01c0ebd3b3e3f35dc23 100644 (file)
@@ -57,7 +57,8 @@ function civicrm_api3_email_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_email_create_spec(&$params) {
   // TODO a 'clever' default should be introduced
@@ -69,7 +70,7 @@ function _civicrm_api3_email_create_spec(&$params) {
 /**
  * Deletes an existing Email
  *
- * @param  array  $params
+ * @param array $params
  *
  * @example EmailDelete.php Standard Delete Example
  *
@@ -84,12 +85,13 @@ function civicrm_api3_email_delete($params) {
 /**
  * Retrieve one or more emails
  *
- * @param  array input parameters
+ * @param array input parameters
  *
  *
  * @example EmailGet.php Standard Get Example
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array api result array
  * {@getfields email_get}
index 57a81e7d43e46407119b0fb7f7038005446fa401..b5b2f4d1f161e3e80114eb89b78fed1d4e2186b2 100644 (file)
@@ -68,7 +68,8 @@ function civicrm_api3_entity_tag_get($params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_entity_tag_get_spec(&$params) {
   $params['entity_id']['api.aliases'] = array('contact_id');
index 9f29a83e9e65e093e3d17bc6b32c36415a8ec633..c2ebc3529c55bd12a5e61a677ea033bb2588bb6b 100644 (file)
@@ -47,7 +47,8 @@
  *
  * This API is used for creating a Event
  *
- * @param  array   $params   input parameters
+ * @param array $params
+ *   Input parameters.
  * Allowed @params array keys are:
  * {@getfields event_create}
  *
@@ -72,7 +73,8 @@ function civicrm_api3_event_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_event_create_spec(&$params) {
   $params['start_date']['api.required'] = 1;
@@ -98,7 +100,8 @@ function _civicrm_api3_event_create_legacy_support_42(&$params){
  * Get Event record.
  *
  *
- * @param  array  $params     an associative array of name/value property values of civicrm_event
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_event.
  * {@getfields event_get}
  *
  * @return  Array of all found event property values.
@@ -159,7 +162,8 @@ function civicrm_api3_event_get($params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_event_get_spec(&$params) {
   $params['financial_type_id']['api.aliases'] = array('contribution_type_id');
@@ -185,7 +189,8 @@ function _civicrm_api3_event_get_legacy_support_42(&$event, $event_id){
  *
  * This API is used for deleting a event
  *
- * @param  Array  $params    array containing event_id to be deleted
+ * @param Array $params
+ *   Array containing event_id to be deleted.
  *
  * @return boolean        true if success, error otherwise
  * @access public
@@ -202,8 +207,10 @@ function civicrm_api3_event_delete($params) {
  * add 'is_full' & 'available_seats' to the return array. (this might be better in the BAO)
  * Default BAO function returns a string if full rather than a Bool - which is more appropriate to a form
  *
- * @param array $event return array of the event
- * @param int $event_id Id of the event to be updated
+ * @param array $event
+ *   Return array of the event.
+ * @param int $event_id
+ *   Id of the event to be updated.
  *
  */
 /**
@@ -225,7 +232,8 @@ function _civicrm_api3_event_getisfull(&$event, $event_id) {
 /**
  * @see _civicrm_api3_generic_getlist_params.
  *
- * @param $request array
+ * @param $request
+ *   Array.
  */
 function _civicrm_api3_event_getlist_params(&$request) {
   $fieldsToReturn = array('start_date', 'event_type_id', 'title', 'summary');
@@ -240,8 +248,10 @@ function _civicrm_api3_event_getlist_params(&$request) {
 /**
  * @see _civicrm_api3_generic_getlist_output
  *
- * @param $result array
- * @param $request array
+ * @param $result
+ *   Array.
+ * @param $request
+ *   Array.
  *
  * @return array
  */
index 18e52ec3540902209e704c839f9ededcf6c7ac39..99795196bfa55b5510c9436994bfec39da4a0832 100644 (file)
@@ -42,7 +42,8 @@ define('API_V3_EXTENSION_DELIMITER', ',');
 /**
  * Install an extension
  *
- * @param  array       $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - key: string, eg "com.example.myextension"
  *                          - keys: mixed; array of string, eg array("com.example.myextension1", "com.example.myextension2") or string with comma-delimited list
  *                            using 'keys' should be more performant than making multiple API calls with 'key'
@@ -101,7 +102,8 @@ function civicrm_api3_extension_upgrade() {
 /**
  * Enable an extension
  *
- * @param  array       $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - key: string, eg "com.example.myextension"
  *                          - keys: mixed; array of string, eg array("com.example.myextension1", "com.example.myextension2") or string with comma-delimited list
  *                            using 'keys' should be more performant than making multiple API calls with 'key'
@@ -125,7 +127,8 @@ function civicrm_api3_extension_enable($params) {
 /**
  * Disable an extension
  *
- * @param  array       $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - key: string, eg "com.example.myextension"
  *                          - keys: mixed; array of string, eg array("com.example.myextension1", "com.example.myextension2") or string with comma-delimited list
  *                            using 'keys' should be more performant than making multiple API calls with 'key'
@@ -149,7 +152,8 @@ function civicrm_api3_extension_disable($params) {
 /**
  * Uninstall an extension
  *
- * @param  array       $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - key: string, eg "com.example.myextension"
  *                          - keys: array of string, eg array("com.example.myextension1", "com.example.myextension2")
  *                            using 'keys' should be more performant than making multiple API calls with 'key'
@@ -175,7 +179,8 @@ function civicrm_api3_extension_uninstall($params) {
 /**
  * Download and install an extension
  *
- * @param  array $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - key: string, eg "com.example.myextension"
  *                          - url: string eg "http://repo.com/myextension-1.0.zip"
  *
@@ -226,7 +231,8 @@ function civicrm_api3_extension_download($params) {
 /**
  * Download and install an extension
  *
- * @param  array       $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - local: bool, whether to rescan local filesystem (default: TRUE)
  *                          - remote: bool, whether to rescan remote repository (default: TRUE)
  *
@@ -287,7 +293,8 @@ function civicrm_api3_extension_get($params) {
 /**
  * Determine the list of extension keys
  *
- * @param array $params API request params with 'key' or 'keys'
+ * @param array $params
+ *   API request params with 'key' or 'keys'.
  * @return array of extension keys
  * @throws API_Exception
  */
index d2e9007e4a91f8330d4e4157f7103bbe2c1fe066..8db55ecdd4f5f9c7f73222d1bb44fea243eae8a1 100644 (file)
@@ -45,7 +45,8 @@
  *
  * This API is used for creating a file
  *
- * @param   array  $params  an associative array of name/value property values of civicrm_file
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_file.
  *
  * @return array of newly created file property values.
  * @access public
@@ -81,7 +82,8 @@ function civicrm_api3_file_create($params) {
  * This api is used for finding an existing file.
  * Required parameters : id OR file_type_id of a file
  *
- * @param  array $params  an associative array of name/value property values of civicrm_file
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_file.
  *
  * @return  Array of all found file object property values.
  * @access public
@@ -97,7 +99,8 @@ function civicrm_api3_file_get($params) {
  * This api is used for updating an existing file.
  * Required parameters : id of a file
  *
- * @param  Array   $params an array of name/value property values of civicrm_file
+ * @param Array $params
+ *   An array of name/value property values of civicrm_file.
  *
  * @return array of updated file object property values
  * @access public
index 2dda583681138b668bb52df1e732534d3a80eb1a..6140fe80a199c91d493a7b817473a617f0e33e5e 100644 (file)
@@ -10,7 +10,8 @@
  * access multiple objects e.g. contact api accesses is_deleted from the activity
  * table & from the contact table
  *
- * @param array $apiRequest api request as an array. Keys are
+ * @param array $apiRequest
+ *   Api request as an array. Keys are.
  *  - entity: string
  *  - action: string
  *  - version: string
@@ -140,7 +141,8 @@ function civicrm_api3_generic_getfields($apiRequest) {
 /**
  * API return function to reformat results as count
  *
- * @param array $apiRequest api request as an array. Keys are
+ * @param array $apiRequest
+ *   Api request as an array. Keys are.
  *
  * @throws API_Exception
  * @return integer count of results
@@ -160,7 +162,8 @@ function civicrm_api3_generic_getcount($apiRequest) {
 /**
  * API return function to reformat results as single result
  *
- * @param array $apiRequest api request as an array. Keys are
+ * @param array $apiRequest
+ *   Api request as an array. Keys are.
  *
  * @return integer count of results
  */
@@ -183,7 +186,8 @@ function civicrm_api3_generic_getsingle($apiRequest) {
 /**
  * API return function to reformat results as single value
  *
- * @param array $apiRequest api request as an array. Keys are
+ * @param array $apiRequest
+ *   Api request as an array. Keys are.
  *
  * @return integer count of results
  */
@@ -221,7 +225,8 @@ function _civicrm_api3_generic_getrefcount_spec(&$params) {
 /**
  * API to determine if a record is in-use
  *
- * @param array $apiRequest api request as an array
+ * @param array $apiRequest
+ *   Api request as an array.
  *
  * @throws API_Exception
  * @return array API result (int 0 or 1)
@@ -247,7 +252,8 @@ function civicrm_api3_generic_getrefcount($apiRequest) {
 /**
  * API wrapper for replace function
  *
- * @param array $apiRequest api request as an array. Keys are
+ * @param array $apiRequest
+ *   Api request as an array. Keys are.
  *
  * @return integer count of results
  */
@@ -258,7 +264,8 @@ function civicrm_api3_generic_replace($apiRequest) {
 /**
  * API wrapper for getoptions function
  *
- * @param array $apiRequest api request as an array.
+ * @param array $apiRequest
+ *   Api request as an array.
  *
  * @return array of results
  */
@@ -296,11 +303,15 @@ function civicrm_api3_generic_getoptions($apiRequest) {
  *
  * This function is only split out for the purpose of code clarity / comment block documentation
  *
- * @param array $metadata the array of metadata that will form the result of the getfields function
+ * @param array $metadata
+ *   The array of metadata that will form the result of the getfields function.
  * @param $apiRequest
- * @param string $fieldname field currently being processed
- * @param array $fieldSpec metadata for that field
- * @param array $fieldsToResolve anny field resolutions specifically requested
+ * @param string $fieldname
+ *   Field currently being processed.
+ * @param array $fieldSpec
+ *   Metadata for that field.
+ * @param array $fieldsToResolve
+ *   Anny field resolutions specifically requested.
  */
 function _civicrm_api3_generic_get_metadata_options(&$metadata, $apiRequest, $fieldname, $fieldSpec, $fieldsToResolve){
   if (empty($fieldSpec['pseudoconstant']) && empty($fieldSpec['option_group_id'])) {
index f6fe772db683bc1b4541f5d46f0fa6ba6bdb95ce..028b6fc7dba1ce0473caef6485dedbb48563f05e 100644 (file)
@@ -28,7 +28,8 @@
 /**
  * Generic api wrapper used for quicksearch and autocomplete
  *
- * @param $apiRequest array
+ * @param $apiRequest
+ *   Array.
  * @return mixed
  */
 function civicrm_api3_generic_getList($apiRequest) {
@@ -66,8 +67,10 @@ function civicrm_api3_generic_getList($apiRequest) {
 /**
  * Set defaults for api.getlist
  *
- * @param $entity string
- * @param $request array
+ * @param $entity
+ *   String.
+ * @param $request
+ *   Array.
  */
 function _civicrm_api3_generic_getList_defaults($entity, &$request) {
   $config = CRM_Core_Config::singleton();
@@ -127,7 +130,8 @@ function _civicrm_api3_generic_getList_defaults($entity, &$request) {
 /**
  * Fallback implementation of getlist_params. May be overridden by individual apis
  *
- * @param $request array
+ * @param $request
+ *   Array.
  */
 function _civicrm_api3_generic_getlist_params(&$request) {
   $fieldsToReturn = array($request['id_field'], $request['label_field']);
@@ -143,8 +147,10 @@ function _civicrm_api3_generic_getlist_params(&$request) {
 /**
  * Fallback implementation of getlist_output. May be overridden by individual apis
  *
- * @param $result array
- * @param $request array
+ * @param $result
+ *   Array.
+ * @param $request
+ *   Array.
  *
  * @return array
  */
index 02743a2c11d95b837e120c5487c9e5e057982927..ae28129d2e7b32c9569ecbe232784175e8ea3b2e 100644 (file)
@@ -35,7 +35,8 @@
  * To do this, perform a 'get' action to load the existing values, then merge in the updates
  * and call 'create' to save the revised entity.
  *
- * @param array $apiRequest array with keys:
+ * @param array $apiRequest
+ *   Array with keys:.
  *  - entity: string
  *  - action: string
  *  - version: string
index 68206b0fd2fdf87e0e6d2fea7464debc966909d5..c2023a761644787011414167201f18179c4d8ad5 100644 (file)
@@ -41,7 +41,8 @@
  * In case of updating existing grant, id of that particular grant must
  * be in $params array.
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'grant'
  *
  * @return array   grant array
@@ -56,7 +57,8 @@ function civicrm_api3_grant_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_grant_create_spec(&$params) {
   $params['grant_type_id']['api.required'] = 1;
@@ -66,7 +68,8 @@ function _civicrm_api3_grant_create_spec(&$params) {
 /**
  * Returns array of grants  matching a set of one or more group properties
  *
- * @param array $params Array of one or more valid
+ * @param array $params
+ *   Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all grants will be returned
  *
@@ -84,7 +87,8 @@ function civicrm_api3_grant_get($params) {
  * This method is used to delete any existing grant. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params   array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array  API Result Array
index 40327be8e676f933476bb817a21a52ea7b515183..b9155be9c8aa7864d10b90962a45615d195814f1 100644 (file)
@@ -43,7 +43,8 @@
  * be in $params array. Either id or name is required field in the
  * $params array
  *
- * @param array $params Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'group'
  *
  * @return array  API result array
@@ -59,7 +60,8 @@ function civicrm_api3_group_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_group_create_spec(&$params) {
   $params['is_active']['api.default'] = 1;
@@ -69,7 +71,8 @@ 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
+ * @param array $params
+ *   Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all groups will be returned
  *
@@ -97,7 +100,8 @@ function civicrm_api3_group_get($params) {
  * This method is used to delete any existing group. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array API result array
index 867241354231853fcf0a5385984a14b2cfcfd170..cdf473b400764fad831677e71f71cb8583b9ff06 100644 (file)
@@ -45,7 +45,8 @@
  * If no status mentioned in params, by default 'added' will be used
  * to fetch the records
  *
- * @param  array $params  name value pair of contact information
+ * @param array $params
+ *   Name value pair of contact information.
  * {@getfields GroupContact_get}
  *
  * @return  array  list of groups, given contact subsribed to
@@ -72,7 +73,8 @@ function civicrm_api3_group_contact_get($params) {
  *
  * @access public
  *
- * @param  array $params Input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * Allowed @params array keys are:<br>
  * "contact_id" (required) : first contact to add<br>
index 9d0e21f3fdc3ebc18f9b04f54ed7bdf56f473dbc..797cd03f0299b1df87639cc1a27388a932a6d71b 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Provides group nesting record(s) given parent and/or child id.
  *
- * @param array $params  an array containing at least child_group_id or parent_group_id
+ * @param array $params
+ *   An array containing at least child_group_id or parent_group_id.
  * {@getfields GroupNesting_get}
  *
  * @return  array  list of group nesting records
@@ -54,7 +55,8 @@ function civicrm_api3_group_nesting_get($params) {
  * Creates group nesting record for given parent and child id.
  * Parent and child groups need to exist.
  *
- * @param array $params parameters array - allowed array keys include:
+ * @param array $params
+ *   Parameters array - allowed array keys include:.
  *
  * @return array TBD
  * {@getfields GroupNesting_create
@@ -73,7 +75,8 @@ function civicrm_api3_group_nesting_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_group_nesting_create_spec(&$params) {
   $params['child_group_id']['api.required'] = 1;
@@ -83,7 +86,8 @@ function _civicrm_api3_group_nesting_create_spec(&$params) {
 /**
  * Removes specific nesting records.
  *
- * @param array $params parameters array - allowed array keys include:
+ * @param array $params
+ *   Parameters array - allowed array keys include:.
  * {@getfields GroupNesting_delete}
  *
  * @return array API Success or fail array
index 5ea1dbde40b13f5e51cc119234304fe5135fff55..e084b8007218c9ef3279a70ed9d6395c30ee40bf 100644 (file)
@@ -44,7 +44,8 @@
  * If no status mentioned in params, by default 'added' will be used
  * to fetch the records
  *
- * @param  array $params  name value pair of contact information
+ * @param array $params
+ *   Name value pair of contact information.
  * {@getfields GroupOrganization_get}
  * @example GroupOrganizationGet.php
  *
@@ -58,7 +59,8 @@ function civicrm_api3_group_organization_get($params) {
  * @example GroupOrganizationCreate.php
  * {@getfields GroupOrganization_create}
  *
- * @param $params array
+ * @param $params
+ *   Array.
  *
  * @return array
  *
@@ -79,7 +81,8 @@ function civicrm_api3_group_organization_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_group_organization_create_spec(&$params) {
   $params['organization_id']['api.required'] = 1;
@@ -91,7 +94,8 @@ function _civicrm_api3_group_organization_create_spec(&$params) {
  *
  * This API is used for deleting a Group Organization
  *
- * @param  array  $params  with 'id' = ID of the Group Organization to be deleted
+ * @param array $params
+ *   With 'id' = ID of the Group Organization to be deleted.
  *
  * @return array API Result
  * {@getfields GroupOrganization_delete}
index 4fa2bc4460b676dc6b0d5a7abecec583f0367b3b..faf8ae427a313df32007d1866d7a1821e3385806 100644 (file)
@@ -53,7 +53,8 @@ function civicrm_api3_im_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_im_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -62,7 +63,7 @@ function _civicrm_api3_im_create_spec(&$params) {
 /**
  * Deletes an existing IM
  *
- * @param  array  $params
+ * @param array $params
  * {@getfields im_delete}
  *
  * @return array API result Array
@@ -76,9 +77,10 @@ function civicrm_api3_im_delete($params) {
 /**
  * Retrieve one or more IM
  *
- * @param  mixed[]  (reference ) input parameters
+ * @param mixed[] (reference ) input parameters
  * {@getfields im_get}
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found IM
  *
index 46e62c2a4b5f2fe6de32f83fd4bdf48ecdff4f52..bdf8a0fff6f406bd823cdcb43930f58fe66af879 100644 (file)
@@ -43,7 +43,8 @@
  * Adjust metadata for "Create" action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_job_create_spec(&$params) {
   $params['run_frequency']['api.required'] = 1;
@@ -58,7 +59,8 @@ function _civicrm_api3_job_create_spec(&$params) {
 /**
  * create scheduled job
  *
- * @param  array $params   Associative array of property name/value pairs to insert in new job.
+ * @param array $params
+ *   Associative array of property name/value pairs to insert in new job.
  *
  * @return success or error
  * {@getfields Job_create}
@@ -71,7 +73,7 @@ function civicrm_api3_job_create($params) {
 
 /**
  * Retrieve one or more job
- * @param  array input parameters
+ * @param array input parameters
  * @return  array api result array
  * {@getfields email_get}
  * @access public
@@ -98,7 +100,8 @@ function civicrm_api3_job_delete($params) {
  * Dumb wrapper to execute scheduled jobs. Always creates success - errors
  * and results are handled in the job log.
  *
- * @param  array $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array API Result Array
  *
@@ -117,7 +120,8 @@ function civicrm_api3_job_execute($params) {
 /**
  * Adjust Metadata for Execute action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_job_execute_spec(&$params) {
 }
@@ -125,7 +129,8 @@ function _civicrm_api3_job_execute_spec(&$params) {
 /**
  * Geocode group of contacts based on given params
  *
- * @param  array       $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array API Result Array
  * {@getfields contact_geocode}
@@ -165,7 +170,8 @@ function _civicrm_api3_job_geocode_spec(&$params) {
 /**
  * Send the scheduled reminders for all contacts (either for activities or events)
  *
- * @param  array       $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *                        now - the time to use, in YmdHis format
  *                            - makes testing a bit simpler since we can simulate past/future time
  *
@@ -199,7 +205,8 @@ function civicrm_api3_job_send_reminder($params) {
  * Adjust metadata for "send_reminder" action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_job_send_reminder(&$params) {
   //@todo this function will now take all fields in action_schedule as params
@@ -212,7 +219,8 @@ function _civicrm_api3_job_send_reminder(&$params) {
 /**
  * Execute a specific report instance and send the output via email
  *
- * @param  array       $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *                        sendmail - Boolean - should email be sent?, required
  *                        instanceId - Integer - the report instance ID
  *                        resetVal - Integer - should we reset form state (always true)?
@@ -281,7 +289,8 @@ function civicrm_api3_job_update_greeting($params) {
  * Adjust Metadata for Get action
 *
 * The metadata is used for setting defaults, documentation & validation
-* @param array $params array or parameters determined by getfields
+* @param array $params
+*   Array or parameters determined by getfields.
 */
 function _civicrm_api3_job_update_greeting_spec(&$params) {
   $params['ct'] = array(
@@ -299,7 +308,8 @@ function _civicrm_api3_job_update_greeting_spec(&$params) {
 /**
  * Mass update pledge statuses
  *
- * @param  array       $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return boolean        true if success, else false
  * @static
@@ -405,7 +415,8 @@ function civicrm_api3_job_fetch_activities($params) {
 /**
  * Process participant statuses
  *
- * @param  array   $params           (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array (reference )        array of properties, if error an array with an error id and error message
  * @access public
@@ -429,7 +440,8 @@ function civicrm_api3_job_process_participant($params) {
  * IMPORTANT:
  * Sending renewal reminders has been migrated from this job to the Scheduled Reminders function as of 4.3.
  *
- * @param  array $params input parameters NOT USED
+ * @param array $params
+ *   Input parameters NOT USED.
  *
  * @return boolean true if success, else false
  * @static void
@@ -455,7 +467,8 @@ function civicrm_api3_job_process_membership($params) {
 /**
  * This api checks and updates the status of all survey respondants.
  *
- * @param  array       $params (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return boolean        true if success, else false
  * @static void
@@ -475,7 +488,8 @@ function civicrm_api3_job_process_respondent($params) {
 /**
  * Merges given pair of duplicate contacts.
  *
- * @param  array   $params   input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * Allowed @params array keys are:
  * {int     $rgid        rule group id}
@@ -509,7 +523,8 @@ function civicrm_api3_job_process_batch_merge($params) {
 /**
  * Runs handlePaymentCron method in the specified payment processor
  *
- * @param  array   $params   input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * Expected @params array keys are:
  * {string  'processor_name' - the name of the payment processor, eg: Sagepay}
@@ -544,7 +559,8 @@ function civicrm_api3_job_run_payment_cron($params) {
 /**
  * This api cleans up all the old session entries and temp tables. We recommend that sites run this on an hourly basis
  *
- * @param  array    $params (reference ) - sends in various config parameters to decide what needs to be cleaned
+ * @param array $params
+ *   (reference ) - sends in various config parameters to decide what needs to be cleaned.
  *
  * @return boolean  true if success, else false
  * @static void
index e51662f5f699b8f8b94770bcb3e4d91fb8fea6e8..c3914367400a6983fe5b6ce4264f3eac03acbb85 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a line_item
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'line_item'
  * @example LineItemCreate.php Std Create example
  *
@@ -55,7 +56,8 @@ function civicrm_api3_line_item_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_line_item_create_spec(&$params) {
   $params['entity_id']['api.required'] = 1;
@@ -68,7 +70,8 @@ function _civicrm_api3_line_item_create_spec(&$params) {
 /**
  * Returns array of line_items  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
+ * @param array $params
+ *   Array of one or more valid property_name=>value pairs. If $params is set.
  *  as null, all line_items will be returned (default limit is 25)
  *
  * @return array  Array of matching line_items
@@ -85,7 +88,8 @@ function civicrm_api3_line_item_get($params) {
  * This method is used to delete any existing line_item. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *  to be deleted
  *
  * @return array API result array
index 28fdb1143bdc159abbf5082e86a5f03915491f28..1432a3c2dafcb3c20f4a756adcb1753971ce57da 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a loc_block
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'loc_block'
  * @example LocBlockCreate.php Std Create example
  *
@@ -89,7 +90,8 @@ function civicrm_api3_loc_block_create($params) {
 /**
  * Returns array of loc_blocks matching a set of one or more properties
  *
- * @param array $params Array of one or more valid property_name=>value pairs. If $params is set
+ * @param array $params
+ *   Array of one or more valid property_name=>value pairs. If $params is set.
  *  as null, all loc_blocks will be returned (default limit is 25)
  *
  * @return array  Array of matching loc_blocks
@@ -127,7 +129,8 @@ function civicrm_api3_loc_block_get($params) {
  * This method is used to delete any existing loc_block.
  * id of the record to be deleted is required field in $params array
  *
- * @param array $params array containing id of the record to be deleted
+ * @param array $params
+ *   Array containing id of the record to be deleted.
  *
  * @return array API result array
  * {@getfields loc_block_delete}
index 722049dd44a650f97da3ba791e8a3f5095c04935..169eace77adc26d2902ca8017731bae557b21a8c 100644 (file)
@@ -62,7 +62,8 @@ function civicrm_api3_location_type_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_location_type_create_spec(&$params) {
   $params['is_active']['api.default'] = 1;
@@ -72,7 +73,7 @@ function _civicrm_api3_location_type_create_spec(&$params) {
 /**
  * Deletes an existing Location Type
  *
- * @param  array  $params
+ * @param array $params
  *
  * @example LocationTypeDelete.php Standard Delete Example
  *
@@ -87,12 +88,13 @@ function civicrm_api3_location_type_delete($params) {
 /**
  * Retrieve one or more Location Types
  *
- * @param  array input parameters
+ * @param array input parameters
  *
  *
  * @example LocationTypeGet.php Standard Get Example
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array api result
  * {@getfields LocationType_get}
index f9c897923b504ef112eef3f9cf7ad3c3a497cc01..6eb567932e9aecfa58871f5c51cd7417e0f847ba 100644 (file)
@@ -37,7 +37,8 @@
 /**
  * Create or update a mail_settings
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'mail_settings'
  * @example mail_settingsCreate.php Std Create example
  *
@@ -53,7 +54,8 @@ function civicrm_api3_mail_settings_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mail_settings_create_spec(&$params) {
 
@@ -62,7 +64,8 @@ function _civicrm_api3_mail_settings_create_spec(&$params) {
 /**
  * Returns array of mail_settings  matching a set of one or more group properties
  *
- * @param array $params  Array of one or more valid
+ * @param array $params
+ *   Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all mail_settings will be returned
  *
@@ -80,7 +83,8 @@ function civicrm_api3_mail_settings_get($params) {
  * This method is used to delete any existing mail_settings. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array api result array
index 61bcd9f62e62c6e146b8011c764bdcabbba27255..72447c0b6cb7dd34e12210561222ede3ba5f0f56 100755 (executable)
@@ -95,7 +95,8 @@ function civicrm_api3_mailing_get_token($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_create_spec(&$params) {
   $params['name']['api.required'] = 1;
@@ -208,7 +209,8 @@ function civicrm_api3_mailing_event_bounce($params) {
  * Adjust Metadata for bounce_spec action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_bounce_spec(&$params) {
   $params['job_id']['api.required'] = 1;
@@ -272,7 +274,8 @@ function civicrm_api3_mailing_event_reply($params) {
  * Adjust Metadata for event_reply action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_reply_spec(&$params) {
   $params['job_id']['api.required'] = 1;
@@ -313,7 +316,8 @@ function civicrm_api3_mailing_event_forward($params) {
  * Adjust Metadata for event_forward action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_forward_spec(&$params) {
   $params['job_id']['api.required'] = 1;
@@ -511,7 +515,8 @@ function civicrm_api3_mailing_send_test($params) {
  * Adjust Metadata for send_mail action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_stats_spec(&$params) {
   $params['date']['api.default'] = 'now';
index 601fff57e12b6bfebc507fd1726d20e539ea5260..d230f203c63b54aec2aecac5c7b0e7398efe3add 100755 (executable)
@@ -79,7 +79,8 @@ function civicrm_api3_mailing_a_b_get($params) {
  * Adjust Metadata for submit action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_a_b_submit_spec(&$params) {
   $mailingFields = CRM_Mailing_DAO_Mailing::fields();
@@ -168,7 +169,8 @@ function civicrm_api3_mailing_a_b_submit($params) {
  * Adjust Metadata for graph_stats action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_a_b_graph_stats_spec(&$params) {
   $params['criteria']['title'] = 'Criteria';
index d2f6313a23b3fd29a2e2d8f5493c1fdc68fd9216..361e12132049544c98fab21206dbd8b1f6240f8c 100644 (file)
@@ -39,7 +39,8 @@
 /**
  * Get all the mailings and details that a contact was involved with
  *
- * @param array    $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                    - key: contact_id, value: int - required
  *                    - key: type, value: Delivered | Bounced - optional, defaults to Delivered
  *                    - Future extensions will include: Opened, Clicked, Forwarded
@@ -57,7 +58,7 @@ function civicrm_api3_mailing_contact_get($params) {
  * This is a wrapper for the functions that return the results from the 'quasi-entity'
  * mailing contact
  * @param array $params
- * @param Boolean $count
+ * @param bool $count
  * @throws Exception
  */
 function _civicrm_api3_mailing_contact_getresults($params, $count){
@@ -78,7 +79,8 @@ function _civicrm_api3_mailing_contact_getresults($params, $count){
 /**
  * Adjust Metadata for Get action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_contact_get_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -285,7 +287,8 @@ INNER JOIN civicrm_mailing_event_bounce meb ON meb.event_queue_id = meq.id
 /**
  * Get count of all the mailings that a contact was involved with
  *
- * @param array    $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                    - key: contact_id, value: int - required
  *                    - key: type, value: Delivered | Bounced - optional, defaults to Delivered
  *                    - Future extensions will include: Opened, Clicked, Forwarded
index 6846fd56e67243ac5a64537128fda31f1f8adcc1..2e26fd88837f18499fa78acd403efb30b921013f 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Handle a confirm event
  *
- * @param array $params Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  *
  * @throws Exception
@@ -66,7 +67,8 @@ function civicrm_api3_mailing_event_confirm_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_confirm_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
index 8dde90e2dc07ed569b629d8e21befc03a6f41543..2746fd081eeef0aa017e33ebbfc0c1c9bd81432a 100644 (file)
@@ -37,7 +37,8 @@
 /**
  * Handle a confirm event
  *
- * @param array $params Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  *
  * @throws Exception
@@ -69,7 +70,8 @@ function civicrm_api3_mailing_event_queue_delete($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_queue_create_spec(&$params) {
   $params['job_id']['api.required'] = 1;
index 234ee74032506a0a4890ac6f3c77ee682ae13e45..49eb41afe4c596fb564f1a4a43de9f6157bcd2a4 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Subscribe from mailing group
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  *
  * @return array api result array
@@ -70,7 +71,8 @@ function civicrm_api3_mailing_event_resubscribe_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_resubscribe_create_spec(&$params) {
   $params['event_queue_id']['api.required'] = 1;
index 513d05998cd39670d8f218e9bb05f8d2e195404e..503ea4f25981414ea22d82445857b1edfb07f268 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Subscribe from mailing group
  *
- * @param array $params Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  *
  * @throws API_Exception
@@ -82,7 +83,8 @@ function civicrm_api3_mailing_event_subscribe_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_subscribe_create_spec(&$params) {
   $params['email']['api.required'] = 1;
index 256ebed461483d1df899bd1b0e85ccd54c48e0ff..be867fa208723c27ac5ef3bc6c91b43b7729193f 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Unsubscribe from mailing group
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  *
  * @return array api result array
@@ -77,7 +78,8 @@ function civicrm_api3_mailing_event_unsubscribe_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_event_unsubscribe_create_spec(&$params) {
   $params['job_id']['api.required'] = 1;
index 0534724901dcc173127ef732f1ff084c35b3c6d0..1b23fbd70c9074a4428a5342f833d8d7f21861dc 100644 (file)
@@ -52,7 +52,8 @@ function civicrm_api3_mailing_job_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_mailing_job_create_spec(&$params) {
   $params['status']['api.default'] = 'Scheduled';
@@ -63,7 +64,8 @@ function _civicrm_api3_mailing_job_create_spec(&$params) {
 /**
  * Returns array of Mailing Jobs  matching a set of one or more group properties
  *
- * @param array $params Array of one or more valid
+ * @param array $params
+ *   Array of one or more valid.
  * @param array $ids
  *
  * @return array API return Array of matching mailing jobs
index a90e6a1eb53ce5114814ef8ebada19898a1637a3..624839872cf7fa39b4eee778d3056b87ca5b563a 100644 (file)
@@ -45,7 +45,8 @@
 /**
  * Returns array of Mailing Recipients
  *
- * @param array $params Array of one or more valid
+ * @param array $params
+ *   Array of one or more valid.
  * @param array $ids
  *
  * @return array API return Array of matching mailing jobs
index 5699fb6e8508245d9d1e761ac2557a5b9b15d9a0..2f795df4d704db3fa81bed0f01bdadbd911c2041 100644 (file)
@@ -42,7 +42,8 @@
  *
  * This API is used for deleting a contact membership
  *
- * @param  $params array  array holding id - Id of the contact membership to be deleted
+ * @param $params
+ *   Array array holding id - Id of the contact membership to be deleted.
  *
  * @return array api result
  * {@getfields membership_delete}
@@ -58,7 +59,8 @@ function civicrm_api3_membership_delete($params) {
  * This API is used for creating a Membership for a contact.
  * Required parameters : membership_type_id and status_id.
  *
- * @param   array  $params     an associative array of name/value property values of civicrm_membership
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_membership.
  *
  * @return array of newly created membership property values.
  * {@getfields membership_create}
@@ -146,7 +148,8 @@ function civicrm_api3_membership_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_membership_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -166,7 +169,8 @@ function _civicrm_api3_membership_create_spec(&$params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_membership_get_spec(&$params) {
   $params['membership_type_id']['api.aliases'] = array('membership_type');
@@ -178,7 +182,8 @@ function _civicrm_api3_membership_get_spec(&$params) {
  * This api will return the membership records for the contacts
  * having membership based on the relationship with the direct members.
  *
- * @param  Array $params key/value pairs for contact_id and some
+ * @param Array $params
+ *   Key/value pairs for contact_id and some.
  *          options affecting the desired results; has legacy support
  *          for just passing the contact_id itself as the argument
  *
@@ -227,7 +232,8 @@ function civicrm_api3_membership_get($params) {
  * is passed in as part of the reasonable expectation developers have that we will keep the api
  * as stable as possible
  *
- * @param array $params parameters passed into get function
+ * @param array $params
+ *   Parameters passed into get function.
  * @param int $membershipTypeId
  * @param $activeOnly
  *
@@ -248,7 +254,8 @@ function _civicrm_api3_membership_get_customv2behaviour(&$params, $membershipTyp
 /**
  * non-standard behaviour inherited from v2
  *
- * @param array $params parameters passed into get function
+ * @param array $params
+ *   Parameters passed into get function.
  * @param $membershipValues
  * @param int $contactID
  *
index 100f712e9eae3b85c000782d3686d89766a30991..f8bdf3db57f01e9ecd1e6a91b4eaa9b2ba9323cf 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * API to Create or update a Membership Type
  *
- * @param array$params  an associative array of name/value property values of civicrm_membership_block
+ * @param array$params
+ *   An associative array of name/value property values of civicrm_membership_block.
  *
  * @return array $result newly created or updated membership type property values.
  * @access public
@@ -54,7 +55,8 @@ function civicrm_api3_membership_block_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_membership_block_create_spec(&$params) {
   $params['is_active']['api.default'] = TRUE;
@@ -67,7 +69,8 @@ function _civicrm_api3_membership_block_create_spec(&$params) {
  *
  * This api is used for finding an existing membership type.
  *
- * @param array $params  an associative array of name/value property values of civicrm_membership_block
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_membership_block.
  * {getfields MembershipBlock_get}
  *
  * @return array api result array of all found membership block property values.
@@ -83,7 +86,7 @@ function civicrm_api3_membership_block_get($params) {
  * This API is used for deleting a membership type
  * Required parameters : id of a membership type
  *
- * @param  array $params
+ * @param array $params
  *
  * @return array api result array
  * @access public
index e5125e006a5cf5e4be3814401d4fc2233601d5ed..8111ade36be5bc265fa609e6f7c29dffba3ec991 100644 (file)
@@ -39,7 +39,8 @@
 /**
  * Add or update a link between contribution and membership
  *
- * @param  array   $params           (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array (reference )        membership_payment_id of created or updated record
  * {@getfields MembershipPayment_create}
@@ -54,7 +55,8 @@ function civicrm_api3_membership_payment_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_membership_payment_create_spec(&$params) {
   $params['membership_id']['api.required'] = 1;
@@ -65,7 +67,8 @@ function _civicrm_api3_membership_payment_create_spec(&$params) {
  * Retrieve one / all contribution(s) / membership(s) linked to a
  * membership / contrbution.
  *
- * @param  array   $params  input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @return array  array of properties, if error an array with an error id and error message
  *  @example MembershipPaymentGet
index 1ce2ad52d41c82331050bcdad31bdbe880b93a2a..b3eaa0edd8b4cbd23bfba67e91b28d010378c213 100644 (file)
@@ -42,7 +42,8 @@
  *
  * This API is used for creating a Membership Status
  *
- * @param   array  $params  an associative array of name/value property values of civicrm_membership_status
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_membership_status.
  *
  * @return array of newly created membership status property values.
  * {@getfields MembershipStatus_create}
@@ -57,7 +58,8 @@ function civicrm_api3_membership_status_create($params) {
  *
  * This api is used for finding an existing membership status.
  *
- * @param  array $params  an associative array of name/value property values of civicrm_membership_status
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_membership_status.
  *
  * @return  Array of all found membership status property values.
  * {@getfields MembershipStatus_get}
@@ -73,7 +75,8 @@ function civicrm_api3_membership_status_get($params) {
  * This api is used for updating an existing membership status.
  * Required parameters : id of a membership status
  *
- * @param  Array   $params  an associative array of name/value property values of civicrm_membership_status
+ * @param Array $params
+ *   An associative array of name/value property values of civicrm_membership_status.
  * @deprecated - should just use create
  *
  * @return array of updated membership status property values
@@ -114,7 +117,7 @@ function &civicrm_api3_membership_status_update($params) {
  *
  * This API is used for deleting a membership status
  *
- * @param  array  Params array containing 'id' -    Id of the membership status to be deleted
+ * @param array Params array containing 'id' - Id of the membership status to be deleted
  * {@getfields MembershipStatus_delete}
  *
  * @return array i
index 6543f59b382c13b8b80c7c4a3ad5cec12c508fda..0bb4d62d8a87110b3da7479bdf3fabb5b51a46ac 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * API to Create or update a Membership Type
  *
- * @param   array  $params  an associative array of name/value property values of civicrm_membership_type
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_membership_type.
  *
  * @return array $result newly created or updated membership type property values.
  * @access public
@@ -64,7 +65,8 @@ function civicrm_api3_membership_type_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_membership_type_create_spec(&$params) {
   // todo could set default here probably
@@ -81,7 +83,8 @@ function _civicrm_api3_membership_type_create_spec(&$params) {
  *
  * This api is used for finding an existing membership type.
  *
- * @param  array $params  an associative array of name/value property values of civicrm_membership_type
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_membership_type.
  * {getfields MembershipType_get}
  *
  * @return  Array of all found membership type property values.
@@ -97,7 +100,7 @@ function civicrm_api3_membership_type_get($params) {
  * This API is used for deleting a membership type
  * Required parameters : id of a membership type
  *
- * @param  array $params
+ * @param array $params
  *
  * @return boolean        true if success, else false
  * @access public
index f038fdaccccf780f216b265837a770c68eb05d3c..463c7fb7dd20b1721d1c3d6d606910dc172edeab 100644 (file)
@@ -43,7 +43,8 @@ function civicrm_api3_message_template_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_message_template_create_spec(&$params) {
   $params['msg_title']['api.required'] = 1;
@@ -55,7 +56,7 @@ function _civicrm_api3_message_template_create_spec(&$params) {
 }
 
 /**
- * @param  array  $params
+ * @param array $params
  *
  * @return boolean | error  true if successfull, error otherwise
  * {@getfields message_template_delete}
@@ -74,12 +75,13 @@ function _civicrm_api3_message_template_get_spec(&$params) {
 /**
  * Retrieve one or more message_template
  *
- * @param  array input parameters
+ * @param array input parameters
  *
  *
  * @example SepaCreditorGet.php Standard Get Example
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array api result array
  * {@getfields message_template_get}
@@ -102,7 +104,8 @@ function civicrm_api3_message_template_send($params) {
  * The metadata is used for setting defaults, documentation &
  * validation.
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_message_template_send_spec(&$params) {
   $params['messageTemplateID']['api.required'] = 1;
index 64c091c0cff40abf7c4e5d707ad3583922be2689..30b684ccc6b1230a8348f4f7b516076676da48e5 100644 (file)
@@ -47,7 +47,8 @@
  * This API is used for creating a note.
  * Required parameters : entity_id AND note
  *
- * @param   array  $params  an associative array of name/value property values of civicrm_note
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_note.
  * {@getfields note_create}
  *
  * @return array API result array
@@ -64,7 +65,8 @@ function civicrm_api3_note_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_note_create_spec(&$params) {
   $params['entity_table']['api.default'] = "civicrm_contact";
@@ -78,7 +80,8 @@ function _civicrm_api3_note_create_spec(&$params) {
  *
  * This API is used for deleting a note
  *
- * @param array $params including id of the note to be deleted
+ * @param array $params
+ *   Including id of the note to be deleted.
  * {@getfields note_delete}
  *
  * @return null
@@ -93,7 +96,8 @@ function civicrm_api3_note_delete($params) {
 /**
  * Retrieve a specific note, given a set of input params
  *
- * @param  array   $params  input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @return array  array of properties,
  * if error an array with an error id and error message
@@ -110,7 +114,8 @@ function civicrm_api3_note_get($params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_note_get_spec(&$params) {
   $params['entity_table']['api.default'] = "civicrm_contact";
@@ -119,7 +124,8 @@ function _civicrm_api3_note_get_spec(&$params) {
 /**
  * Get all descendents of given note
  *
- * @param array $params Associative array; only required 'id' parameter is used
+ * @param array $params
+ *   Associative array; only required 'id' parameter is used.
  *
  * @return array Nested associative array beginning with direct children of given note.
  */
index e14f99b2581e1dfb8df4892719e596477a41c4fb..0f31b174b6255c6316df298d35b9bf22710cc539 100644 (file)
@@ -16,7 +16,8 @@ function civicrm_api3_option_group_get($params) {
  * In case of updating existing survey, id of that particular survey must
  * be in $params array.
  *
- * @param array $params  (reference) Associative array of property
+ * @param array $params
+ *   (reference) Associative array of property.
  *   name/value pairs to insert in new 'survey'
  *
  * @return array   survey array
@@ -31,7 +32,8 @@ function civicrm_api3_option_group_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_option_group_create_spec(&$params) {
   $params['name']['api.unique'] = 1;
@@ -43,7 +45,8 @@ function _civicrm_api3_option_group_create_spec(&$params) {
  * This method is used to delete any existing Option Group. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array API Result Array
index e342c996610501475a2a7b6c3c40e244fd8e4b24..6e2eb8e1b9fb57fb7993d0277f92008a4161a8fc 100644 (file)
@@ -59,7 +59,8 @@ function civicrm_api3_option_value_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_option_value_create_spec(&$params) {
   $params['is_active']['api.default'] = 1;
@@ -72,7 +73,7 @@ function _civicrm_api3_option_value_create_spec(&$params) {
 /**
  * Deletes an existing OptionValue
  *
- * @param  array  $params
+ * @param array $params
  *
  * {@example OptionValueDelete.php 0}
  *
index b663e584831bec1260a2e7119a79aa8578b9221c..4f289460fc37a5a0f13f4d3935d03c16b605c1fe 100644 (file)
@@ -48,7 +48,8 @@
  * Required parameters : event_id AND contact_id for new creation
  *                     : participant as name/value with participantid for edit
  *
- * @param   array  $params     an associative array of name/value property values of civicrm_participant
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_participant.
  *
  * @return array apiresult
  * {@getfields participant_create}
@@ -141,7 +142,8 @@ function _civicrm_api3_participant_createlineitem(&$params, $participant){
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_participant_create_spec(&$params) {
   $params['status_id']['api.default'] = "1";
@@ -158,7 +160,8 @@ function _civicrm_api3_participant_create_spec(&$params) {
  * If more than one matching participant exists, return an error, unless
  * the client has requested to return the first found contact
  *
- * @param  array   $params           (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array (reference )        array of properties, if error an array with an error id and error message
  * {@getfields participant_get}
@@ -184,7 +187,8 @@ function civicrm_api3_participant_get($params) {
  * Adjust Metadata for Get action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_participant_get_spec(&$params) {
   $params['participant_test']['api.default'] = 0;
@@ -196,7 +200,8 @@ function _civicrm_api3_participant_get_spec(&$params) {
  *
  * This API is used for deleting a contact participant
  *
- * @param  array $params Array containing  Id of the contact participant to be deleted
+ * @param array $params
+ *   Array containing Id of the contact participant to be deleted.
  *
  * {@getfields participant_delete}
  * @throws Exception
index 7d7729163e1fadca7d2892fa5f02885ee6ad7255..d9f5cfda01329ddc80030ee879c887ca8413dd05 100644 (file)
@@ -47,7 +47,8 @@
  * This API is used for creating a Participant Payment of Event.
  * Required parameters : participant_id, contribution_id.
  *
- * @param   array  $params     an associative array of name/value property values of civicrm_participant_payment
+ * @param array $params
+ *   An associative array of name/value property values of civicrm_participant_payment.
  * @example ParticipantPaymentCreate.php
  * {@example ParticipantPaymentCreate.php 0}
  *
@@ -73,7 +74,8 @@ function civicrm_api3_participant_payment_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_participant_payment_create_spec(&$params) {
   $params['participant_id']['api.required'] = 1;
@@ -101,7 +103,8 @@ function civicrm_api3_participant_payment_delete($params) {
  * Retrieve one / all contribution(s) / participant(s) linked to a
  * contribution.
  *
- * @param  array   $params  input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @return array  array of properties, if error an array with an error id and error message
  *  @example ParticipantPaymentGet
index 32d7f2707203ed59b5a9e9b6419fce4f6a370d4c..0ca2c5430e69e774bb5ec0bd54fdd2de01f49f1c 100644 (file)
@@ -41,7 +41,8 @@
  * In case of updating existing participant_status, id of that particular participant_status must
  * be in $params array.
  *
- * @param array $params Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'participant_status'
  *
  * @return array   participant_status array
@@ -56,7 +57,8 @@ 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
+ * @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
  *
@@ -75,7 +77,8 @@ function civicrm_api3_participant_status_type_get($params) {
  * This method is used to delete any existing participant_status. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params  (reference) array containing id of the group
+ * @param array $params
+ *   (reference) array containing id of the group.
  *                       to be deleted
  *
  * @return array api result array
index 5567282f42efc0cd25ddd0b42150fb875618eaa9..17513278eccb5363b4b21e3a10accab243820434 100644 (file)
@@ -53,7 +53,8 @@ function civicrm_api3_payment_processor_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_payment_processor_create_spec(&$params) {
   $params['payment_processor_type_id']['api.required'] = 1;
@@ -64,7 +65,7 @@ function _civicrm_api3_payment_processor_create_spec(&$params) {
 /**
  * Deletes an existing PaymentProcessor
  *
- * @param  array  $params
+ * @param array $params
  * {@getfields payment_processor_delete}
  *
  * @return array API result Array
@@ -77,9 +78,10 @@ function civicrm_api3_payment_processor_delete($params) {
 /**
  * Retrieve one or more PaymentProcessor
  *
- * @param  mixed[]  (reference) input parameters
+ * @param mixed[] (reference) input parameters
  * {@getfields payment_processor_get}
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found PaymentProcessor
  * @access public
index 1eefa1f3034049837bf4b1458b344a0bb945a00c..7370d070300bc8db0b2a43b2d7871b040c76ea22 100644 (file)
@@ -44,7 +44,8 @@
 /**
  * create payment_processor type
  *
- * @param  array $params   Associative array of property name/value pairs to insert in new payment_processor type.
+ * @param array $params
+ *   Associative array of property name/value pairs to insert in new payment_processor type.
  *
  * @return Newly created PaymentProcessor_type object
  * {@getfields PaymentProcessorType_create}
@@ -71,7 +72,8 @@ function civicrm_api3_payment_processor_type_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_payment_processor_type_create_spec(&$params) {
   $params['billing_mode']['api.required'] = 1;
@@ -97,7 +99,7 @@ function civicrm_api3_payment_processor_type_get($params) {
 /**
  * Delete a payment_processor type delete
  *
- * @param  id of payment_processor type  $id
+ * @param id of payment_processor type $id
  *
  * @return array API Result Array
  * {@getfields PaymentProcessorType_delete}
index e207f840a85e48b332037c2e5a7c0a1455da3133..b09f29292f5cbc3755aca4113de5df9602200d53 100644 (file)
@@ -56,7 +56,8 @@ function civicrm_api3_phone_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_phone_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -68,7 +69,7 @@ function _civicrm_api3_phone_create_spec(&$params) {
 /**
  * Deletes an existing Phone
  *
- * @param  array  $params
+ * @param array $params
  *
  * @return array Api Result
  * {@getfields phone_delete}
index d2e323865788e6018ecc9affd2fafffc601cf136..93a7845f859046024738026c0f67fb1ff72d2a13 100644 (file)
@@ -3,11 +3,12 @@
 /**
  * Retrieve one or more phones
  *
- * @param  mixed[]  (reference ) input parameters
+ * @param mixed[] (reference ) input parameters
  *
  * {@schema Core/Phone.xml}
  * {@example PhoneDelete.php 0}
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found phones else error
  * @access public
index 00d21ca87a283618ffc146ab470c8c26cf19bf93..2ab36addc513d8e214232dea8893c00cc91d415a 100644 (file)
@@ -44,7 +44,8 @@
 /**
  * Creates or updates an Activity. See the example for usage
  *
- * @param array  $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs for the activity.
  * {@getfields pledge_create}
  *
@@ -64,7 +65,8 @@ function civicrm_api3_pledge_create($params) {
 /**
  * Delete a pledge
  *
- * @param  array   $params           array included 'pledge_id' of pledge to delete
+ * @param array $params
+ *   Array included 'pledge_id' of pledge to delete.
  *
  * @return boolean        true if success, else false
  * @static void
@@ -124,7 +126,8 @@ function _civicrm_api3_pledge_create_spec(&$params) {
 /**
  * Retrieve a set of pledges, given a set of input params
  *
- * @param  array $params input parameters. Use interrogate for possible fields
+ * @param array $params
+ *   Input parameters. Use interrogate for possible fields.
  *
  * @return array  array of pledges, if error an array with an error id and error message
  * {@getfields pledge_get}
@@ -158,7 +161,8 @@ function _civicrm_api3_pledge_get_defaults() {
  * take the input parameter list as specified in the data model and
  * convert it into the same format that we use in QF and BAO object
  *
- * @param array $values The reformatted properties that we can use internally
+ * @param array $values
+ *   The reformatted properties that we can use internally.
  * @param bool $create
  *
  * @return array|CRM_Error
index c2c4a2a21b4ff4d255e16e7b22a76a31e1dee14d..3bb811d26d2bb62b3033334aa302e62da04710e1 100644 (file)
@@ -45,7 +45,8 @@
  * @todo possibly add ability to add payment if there are less payments than pledge installments
  * @todo possibly add ability to recalculate dates if the schedule is changed
  *
- * @param  array   $params    input parameters
+ * @param array $params
+ *   Input parameters.
  * {@getfields PledgePayment_create}
  * @example PledgePaymentCreate.php
  *
@@ -83,7 +84,8 @@ function civicrm_api3_pledge_payment_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_pledge_payment_create_spec(&$params) {
   $params['pledge_id']['api.required'] = 1;
@@ -93,7 +95,8 @@ function _civicrm_api3_pledge_payment_create_spec(&$params) {
 /**
  * Delete a pledge Payment - Note this deletes the contribution not just the link
  *
- * @param  array   $params     input parameters
+ * @param array $params
+ *   Input parameters.
  * {@getfields PledgePayment_delete}
  * @example PledgePaymentDelete.php
  *
@@ -114,7 +117,8 @@ function civicrm_api3_pledge_payment_delete($params) {
 /**
  * Retrieve a set of pledges, given a set of input params
  *
- * @param  array   $params     input parameters
+ * @param array $params
+ *   Input parameters.
  * {@getfields PledgePayment_get}
  * @example PledgePaymentGet.php *
  *
index cb6fc1e77d9b3fc0c31c104730f8c91773dce247..0e5800cd28caa5a5c73e9d1901211993514c5bd0 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a price_field
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'price_field'
  * @example PriceFieldCreate.php Std Create example
  *
@@ -54,7 +55,8 @@ function civicrm_api3_price_field_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_price_field_create_spec(&$params) {
   $params['label']['api.required'] = TRUE;
@@ -63,7 +65,8 @@ function _civicrm_api3_price_field_create_spec(&$params) {
 /**
  * Returns array of price_fields  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
+ * @param array $params
+ *   Array of one or more valid property_name=>value pairs. If $params is set.
  *  as null, all price_fields will be returned (default limit is 25)
  *
  * @return array  Array of matching price_fields
@@ -80,7 +83,8 @@ function civicrm_api3_price_field_get($params) {
  * This method is used to delete any existing price_field. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *  to be deleted
  *
  * @return array API result array
index 76537cd0f1bb575e675aadc414b566833f0dff5b..f3a294ffea32cd6601de17a1364db42ea2f4665b 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a price_field_value
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'price_field_value'
  * @example PriceFieldValueCreate.php Std Create example
  *
@@ -64,7 +65,8 @@ function civicrm_api3_price_field_value_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_price_field_value_create_spec(&$params) {
   $params['price_field_id']['api.required'] = TRUE;
@@ -76,7 +78,8 @@ function _civicrm_api3_price_field_value_create_spec(&$params) {
 /**
  * Returns array of price_field_values  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
+ * @param array $params
+ *   Array of one or more valid property_name=>value pairs. If $params is set.
  *  as null, all price_field_values will be returned (default limit is 25)
  *
  * @return array  Array of matching price_field_values
@@ -93,7 +96,8 @@ function civicrm_api3_price_field_value_get($params) {
  * This method is used to delete any existing price_field_value. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *  to be deleted
  *
  * @return array API result array
index 5fe4abe6030ebcd5893dd5fb52881dc805690661..1c4c785b378e46c1387b217df39033abc32ee50f 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a price_set
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'price_set'
  * @example PriceSetCreate.php Std Create example
  *
@@ -68,7 +69,8 @@ function civicrm_api3_price_set_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_price_set_create_spec(&$params) {
   $params['title']['api.required'] = TRUE;
@@ -77,7 +79,8 @@ function _civicrm_api3_price_set_create_spec(&$params) {
 /**
  * Returns array of price_sets  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
+ * @param array $params
+ *   Array of one or more valid property_name=>value pairs. If $params is set.
  *  as null, all price_sets will be returned (default limit is 25)
  *
  * @return array  Array of matching price_sets
@@ -104,7 +107,8 @@ function civicrm_api3_price_set_get($params) {
  * This method is used to delete any existing price_set. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *  to be deleted
  *
  * @return array API result array
index 7b15b6bfdf4c7e731c21ca701b10cfc53a6ce3f3..8a7084b80ab0d7f16180101cfa1647c218c1a374 100644 (file)
@@ -39,7 +39,8 @@
 /**
  * Retrieve Profile field values.
  *
- * @param array $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs to get profile field values
  *
  * @throws API_Exception
@@ -292,7 +293,8 @@ function civicrm_api3_profile_submit($params) {
  * so we accept 'email-primary' but pass 'email-Primary' to the BAO
  * we could make the BAO handle email-primary but this would alter the fieldname seen by hooks
  * & we would need to consider that change
- * @param string $fieldName API field name
+ * @param string $fieldName
+ *   API field name.
  *
  * @return string BAO Field Name
  */
@@ -330,7 +332,8 @@ function _civicrm_api3_profile_submit_spec(&$params, $apirequest) {
  * use submit
  * Update Profile field values.
  *
- * @param array  $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs to update profile field values
  *
  * @return array Updated Contact/ Activity object|CRM_Error
@@ -345,7 +348,8 @@ function civicrm_api3_profile_set($params) {
  * @deprecated - appears to be an internal function - should not be accessible via api
  * Provide formatted values for profile fields.
  *
- * @param array $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs to profile field values
  *
  * @throws API_Exception
@@ -478,8 +482,9 @@ function _civicrm_api3_profile_getbillingpseudoprofile(&$params) {
  * & participant has 'participant_status' so we have to standardise from the outside in here -
  * find the oddities, 'mask them' at this layer, add tests & work to standardise over time so we can remove this handling
  *
- * @param integer $profileID
- * @param integer $optionsBehaviour 0 = don't resolve, 1 = resolve non-aggressively, 2 = resolve aggressively - ie include country & state
+ * @param int $profileID
+ * @param int $optionsBehaviour
+ *   0 = don't resolve, 1 = resolve non-aggressively, 2 = resolve aggressively - ie include country & state.
  * @param $is_flush
  *
  * @return
index 5f363babd207674c9a69d4779a087aaff7368950..97867e07ea9f15c8be5f34cd7788ab5e96cff67f 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Add or update a relationship
  *
- * @param  array $params input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @throws API_Exception
  * @example RelationshipCreate.php Std Create example
@@ -58,7 +59,8 @@ function civicrm_api3_relationship_create($params) {
 /**
  * Adjust Metadata for Create action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_relationship_create_spec(&$params) {
   $params['contact_id_a']['api.required'] = 1;
@@ -70,7 +72,7 @@ function _civicrm_api3_relationship_create_spec(&$params) {
 /**
  * Delete a relationship
  *
- * @param  array $params
+ * @param array $params
  *
  * @return array API Result Array
  * {@getfields relationship_delete}
@@ -99,7 +101,8 @@ function civicrm_api3_relationship_delete($params) {
 /**
  * get the relationship
  *
- * @param array   $params input parameters.
+ * @param array $params
+ *   Input parameters.
  * @todo  Result is inconsistent depending on whether contact_id is passed in :
  * -  if you pass in contact_id - it just returns all relationships for 'contact_id'
  * -  if you don't pass in contact_id then it does a filter on the relationship table (DAO based search)
@@ -143,8 +146,9 @@ function civicrm_api3_relationship_get($params) {
 /**
  * legacy handling for relationship_type parameter
  *
- * @param array $params Associative array of property name/value
- *                             pairs to insert in new contact.
+ * @param array $params
+ *   Associative array of property name/value.
+ *   pairs to insert in new contact.
  */
 function _civicrm_api3_handle_relationship_type(&$params) {
   if (empty($params['relationship_type_id']) && !empty($params['relationship_type'])) {
index b6a85ba1db0d9c76daee53cc8c12f60a030e2e50..c1d76e19df74af750112002d0993291be52941c3 100644 (file)
@@ -39,7 +39,8 @@
 /**
  * create relationship type
  *
- * @param  array $params   Associative array of property name/value pairs to insert in new relationship type.
+ * @param array $params
+ *   Associative array of property name/value pairs to insert in new relationship type.
  *
  * @return Newly created Relationship_type object
  * {@getfields RelationshipType_create}
@@ -80,7 +81,8 @@ function civicrm_api3_relationship_type_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_relationship_type_create_spec(&$params) {
   $params['contact_type_a']['api.required'] = 1;
@@ -104,7 +106,7 @@ function civicrm_api3_relationship_type_get($params) {
 /**
  * Delete a relationship type delete
  *
- * @param  id of relationship type  $id
+ * @param id of relationship type $id
  *
  * @return array API Result Array
  * {@getfields RelationshipType_delete}
index feb4c0693a7d6adf61cebb6b8de16ba7c4d8adc0..845aa640eca34eb836b891fd19b97089423f279d 100644 (file)
@@ -3,7 +3,8 @@
 /**
  * Retrieve a report instance
  *
- * @param  array  $params input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @return  array details of found instances
  * @access public
@@ -28,7 +29,8 @@ function civicrm_api3_report_instance_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_report_instance_create_spec(&$params) {
   $params['report_id']['api.required'] = 1;
@@ -38,7 +40,7 @@ function _civicrm_api3_report_instance_create_spec(&$params) {
 /**
  * Deletes an existing ReportInstance
  *
- * @param  array  $params
+ * @param array $params
  *
  * @return array Api result
  * @access public
index 2d57c6cdea39b7954c5e9ff25fc69bc5e78dc470..a90112a97297a743273d3ba83859568de40a4b5e 100644 (file)
@@ -51,7 +51,8 @@ function civicrm_api3_report_template_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_report_template_create_spec(&$params) {
   require_once 'api/v3/OptionValue.php';
@@ -67,7 +68,7 @@ function _civicrm_api3_report_template_create_spec(&$params) {
 /**
  * Deletes an existing ReportTemplate
  *
- * @param  array  $params
+ * @param array $params
  *
  * {@example ReportTemplateDelete.php 0}
  *
@@ -83,7 +84,8 @@ function civicrm_api3_report_template_delete($params) {
 /**
  * Retrieve rows from a report template
  *
- * @param  array  $params input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @return  array details of found instances
  * @access public
@@ -159,7 +161,8 @@ function civicrm_api3_report_template_getstatistics($params) {
 /**
  * Retrieve rows from a report template
  *
- * @param  array  $params input parameters
+ * @param array $params
+ *   Input parameters.
  *
  * @return  array details of found instances
  * @access public
index cf16d45648168b565aa718620ec86477b6c9ee80..aa62527a07a8b8f3f1d649aa8a4ba837a669bd1d 100644 (file)
@@ -110,7 +110,8 @@ function civicrm_api3_setting_getdefaults(&$params){
 /**
  * Metadata for setting create function
  *
- * @param array $params parameters as passed to the API
+ * @param array $params
+ *   Parameters as passed to the API.
  */
 function _civicrm_api3_setting_getdefaults_spec(&$params) {
   $params['domain_id'] = array(
@@ -195,7 +196,8 @@ function _civicrm_api3_setting_fill_spec(&$params) {
 /**
  * Create or update a setting
  *
- * @param array $params  Associative array of setting
+ * @param array $params
+ *   Associative array of setting.
  *                       name/value pairs + other vars as applicable - see getfields for more
  * @example SettingCreate.php Std Create example
  *
@@ -212,7 +214,8 @@ function civicrm_api3_setting_create($params) {
 /**
  * Metadata for setting create function
  *
- * @param array $params parameters as passed to the API
+ * @param array $params
+ *   Parameters as passed to the API.
  */
 function _civicrm_api3_setting_create_spec(&$params) {
   $params['domain_id'] = array(
@@ -231,7 +234,8 @@ function _civicrm_api3_setting_create_spec(&$params) {
 /**
  * Returns array of settings matching input parameters
  *
- * @param array $params Array of one or more valid
+ * @param array $params
+ *   Array of one or more valid.
  *                       property_name=>value pairs.
  *
  * @return array Array of matching settings
@@ -246,7 +250,8 @@ function civicrm_api3_setting_get($params) {
 /**
  * Metadata for setting create function
  *
- * @param array $params parameters as passed to the API
+ * @param array $params
+ *   Parameters as passed to the API.
  */
 function _civicrm_api3_setting_get_spec(&$params) {
   $params['domain_id'] = array(
@@ -264,7 +269,8 @@ function _civicrm_api3_setting_get_spec(&$params) {
  * Returns value for specific parameter. Function requires more fields than 'get' but is intended for
  * runtime usage & should be quicker
  *
- * @param array $params  (reference) Array of one or more valid
+ * @param array $params
+ *   (reference) Array of one or more valid.
  *                       property_name=>value pairs.
  *
  * @return array Array of matching settings
@@ -289,7 +295,8 @@ function civicrm_api3_setting_getvalue($params) {
 /**
  * Metadata for setting create function
  *
- * @param array $params parameters as passed to the API
+ * @param array $params
+ *   Parameters as passed to the API.
  */
 function _civicrm_api3_setting_getvalue_spec(&$params) {
 
index bc12a4502f25f3f2df12dc74134ce02823b420e0..33a8cff1fa01525a6924f5885e17482387b8b5c7 100644 (file)
@@ -38,7 +38,8 @@
 /**
  * Create or update a survey
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  * @example SurveyCreate.php Std Create example
  *
@@ -54,7 +55,8 @@ function civicrm_api3_survey_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_survey_create_spec(&$params) {
   $params['title']['api.required'] = 1;
@@ -63,7 +65,8 @@ 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
+ * @param array $params
+ *   Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all surveys will be returned
  *
@@ -81,7 +84,8 @@ function civicrm_api3_survey_get($params) {
  * This method is used to delete any existing survey. id of the group
  * to be deleted is required field in $params array
  *
- * @param array $params array containing id of the group
+ * @param array $params
+ *   Array containing id of the group.
  *                       to be deleted
  *
  * @return array api result array
index 77b2f750ade335318de9c724ebb96510d8b84682..ececf93cfb84405daf91c4cd7dea73d69e779dd6 100644 (file)
@@ -44,7 +44,8 @@ function _civicrm_api3_survey_respondant_deprecation() {
 /**
  * Get the list of signatories
  *
- * @param  array   $params           (reference ) input parameters
+ * @param array $params
+ *   (reference ) input parameters.
  *
  * @return array (reference )        contribution_id of created or updated record
  * @static void
index 6e93f476209fb4c36a8a42449fa3f81bd19043ce..b456f94b780968aa233667ae4765eff7a8c50f83 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Flush all system caches
  *
- * @param  array       $params input parameters
+ * @param array $params
+ *   Input parameters.
  *                          - triggers: bool, whether to drop/create SQL triggers; default: FALSE
  *                          - session:  bool, whether to reset the CiviCRM session data; defaul: FALSE
  *
@@ -62,7 +63,8 @@ function civicrm_api3_system_flush($params) {
  * Adjust Metadata for Flush action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_system_flush_spec(&$params){
   $params['triggers'] = array('title' => 'rebuild triggers (boolean)');
@@ -73,7 +75,8 @@ function _civicrm_api3_system_flush_spec(&$params){
  * System.Check API specification (optional)
  * This is used for documentation and validation.
  *
- * @param array $spec description of fields supported by this API call
+ * @param array $spec
+ *   Description of fields supported by this API call.
  * @return void
  * @see http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
  */
index 20183361fca5be4ad62956d5ad2474a218d437bb..5af6853eb9930b4572af10934400d5eb347f16bf 100644 (file)
@@ -67,7 +67,7 @@ function _civicrm_api3_tag_create_spec(&$params) {
 /**
  * Deletes an existing Tag
  *
- * @param  array  $params
+ * @param array $params
  *
  * @example TagDelete.ph
  *
@@ -87,7 +87,8 @@ function civicrm_api3_tag_delete($params) {
  *
  * @example TagGet.php
  *
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found tags else error
  * {@getfields tag_get}
index cfb086fbe6acddc38f0d5b925fe21797ba1611aa..b18ad19f95d49911184a92e0fb180c0818556230 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * Defines 'uf field' within a group.
  *
- * @param $params  array  Associative array of property name/value pairs to create new uf field.
+ * @param $params
+ *   Array Associative array of property name/value pairs to create new uf field.
  *
  * @throws API_Exception
  *
@@ -129,7 +130,8 @@ function _civicrm_api3_uf_field_create_spec(&$params) {
 /**
  * Returns array of uf groups (profiles)  matching a set of one or more group properties
  *
- * @param array $params  (reference) Array of one or more valid
+ * @param array $params
+ *   (reference) Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all surveys will be returned
  *
index 18f5ac15656f91e70cf9cb03187c330bdafb263d..114ad3b4eba95581126150c83f00cdddb33b1300 100644 (file)
@@ -51,7 +51,8 @@ function _civicrm_api3_uf_group_create_spec(&$params) {
 /**
  * Use this API to create a new group. See the CRM Data Model for uf_group property definitions
  *
- * @param $params  array   Associative array of property name/value pairs to insert in group.
+ * @param $params
+ *   Array Associative array of property name/value pairs to insert in group.
  *
  * @return array API result array
  * {@getfields UFGroup_create}
@@ -65,7 +66,8 @@ 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  (reference) Array of one or more valid
+ * @param array $params
+ *   (reference) Array of one or more valid.
  *                       property_name=>value pairs. If $params is set
  *                       as null, all surveys will be returned
  *
index 85d99f1b54d294ed3fa5bf2c42d696ef4680c199..df86d5744b2c9b25ebe189bd501966ed433f4a64 100644 (file)
@@ -40,7 +40,8 @@
 /**
  * takes an associative array and creates a uf join in the database
  *
- * @param array $params assoc array of name/value pairs
+ * @param array $params
+ *   Assoc array of name/value pairs.
  *
  * @return array CRM_Core_DAO_UFJoin Array
  * @access public
@@ -58,7 +59,8 @@ function civicrm_api3_uf_join_create($params) {
 /**
  * Adjust Metadata for Create action
  *
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  * @todo - suspect module, weight don't need to be required - need to test
  */
 function _civicrm_api3_uf_join_create_spec(&$params) {
@@ -70,7 +72,8 @@ function _civicrm_api3_uf_join_create_spec(&$params) {
 /**
  * Get CiviCRM UF_Joins (ie joins between CMS user records & CiviCRM user record
  *
- * @param array $params (reference) an assoc array of name/value pairs
+ * @param array $params
+ *   (reference) an assoc array of name/value pairs.
  *
  * @return array $result CiviCRM Result Array or null
  * @todo Delete function missing
index bf49340e5bb189bfa674fa4262f32bfdaa436a48..88d7b7fc0edbbaf8f5798fac306b0821b678e691 100644 (file)
@@ -55,7 +55,8 @@ function civicrm_api3_uf_match_get($params) {
 /**
  * Create or update a UF Match record
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  * @example UFMatch.php Std Create example
  *
@@ -71,7 +72,8 @@ function civicrm_api3_uf_match_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_uf_match_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -82,7 +84,8 @@ function _civicrm_api3_uf_match_create_spec(&$params) {
 /**
  * Create or update a survey
  *
- * @param array $params  Associative array of property
+ * @param array $params
+ *   Associative array of property.
  *                       name/value pairs to insert in new 'survey'
  * @example UFMatch.php Std Create example
  *
index 257ee3409627250169ec74c470054bc2c6f327e2..9b778942311e7d772f85ebebcffa64a63df25e14 100644 (file)
@@ -63,7 +63,8 @@ function civicrm_api3_website_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_website_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
@@ -72,7 +73,7 @@ function _civicrm_api3_website_create_spec(&$params) {
 /**
  * Deletes an existing Website
  *
- * @param  array  $params
+ * @param array $params
  * {@getfields website_delete}
  * @example WebsiteDelete.php Std Delete Example
  *
@@ -100,11 +101,12 @@ function civicrm_api3_website_delete($params) {
 /**
  * Retrieve one or more websites
  *
- * @param  mixed[]  (reference ) input parameters
+ * @param mixed[] (reference ) input parameters
  * {@getfields website_get}
  * {@example WebsiteGet.php 0}
  * @example WebsiteGet.php
- * @param  array $params  an associative array of name/value pairs.
+ * @param array $params
+ *   An associative array of name/value pairs.
  *
  * @return  array details of found websites
  *
index 5581295f482f4af94a391bf44bc1eaae81e854be..4a906a1b45434703018dcf37840533c7ef820ae7 100644 (file)
@@ -68,7 +68,8 @@ function civicrm_api3_word_replacement_create($params) {
  * Adjust Metadata for Create action
  *
  * The metadata is used for setting defaults, documentation & validation
- * @param array $params array or parameters determined by getfields
+ * @param array $params
+ *   Array or parameters determined by getfields.
  */
 function _civicrm_api3_word_replacement_create_spec(&$params) {
   unset($params['version']);
@@ -78,7 +79,8 @@ function _civicrm_api3_word_replacement_create_spec(&$params) {
  * delete an existing word_replacement
  *
  *
- * @param array $params array containing id of the word_replacement
+ * @param array $params
+ *   Array containing id of the word_replacement.
  *  to be deleted
  *
  * @return array api result array
index 681671ed41717f7e136f7285fbf3daa391b670f8..d60e34a7d419ba8a3209cb93fe9c08432a2fd37d 100644 (file)
@@ -48,9 +48,12 @@ function _civicrm_api3_initialize() {
 /**
  * Wrapper Function for civicrm_verify_mandatory to make it simple to pass either / or fields for checking
  *
- * @param array $params array of fields to check
- * @param array $daoName string DAO to check for required fields (create functions only)
- * @param array $keyoptions list of required fields options. One of the options is required
+ * @param array $params
+ *   Array of fields to check.
+ * @param array $daoName
+ *   String DAO to check for required fields (create functions only).
+ * @param array $keyoptions
+ *   List of required fields options. One of the options is required.
  *
  * @return null or throws error if there the required fields not present
  * @
@@ -67,9 +70,12 @@ function civicrm_api3_verify_one_mandatory($params, $daoName = NULL, $keyoptions
 /**
  * check mandatory fields are included
  *
- * @param array $params array of fields to check
- * @param array $daoName string DAO to check for required fields (create functions only)
- * @param array $keys list of required fields. A value can be an array denoting that either this or that is required.
+ * @param array $params
+ *   Array of fields to check.
+ * @param array $daoName
+ *   String DAO to check for required fields (create functions only).
+ * @param array $keys
+ *   List of required fields. A value can be an array denoting that either this or that is required.
  * @param bool $verifyDAO
  *
  * @throws API_Exception
@@ -151,11 +157,16 @@ function civicrm_api3_create_error($msg, $data = array()) {
  * Format array in result output styple
  *
  * @param array|int $values values generated by API operation (the result)
- * @param array $params parameters passed into API call
- * @param string $entity the entity being acted on
- * @param string $action the action passed to the API
- * @param object $dao DAO object to be freed here
- * @param array $extraReturnValues additional values to be added to top level of result array(
+ * @param array $params
+ *   Parameters passed into API call.
+ * @param string $entity
+ *   The entity being acted on.
+ * @param string $action
+ *   The action passed to the API.
+ * @param object $dao
+ *   DAO object to be freed here.
+ * @param array $extraReturnValues
+ *   Additional values to be added to top level of result array(.
  *   - this param is currently used for legacy behaviour support
  *
  * @return array $result
@@ -271,7 +282,8 @@ function _civicrm_api3_load_DAO($entity) {
 
 /**
  * return the DAO of the function or Entity
- * @param String $name  either a function of the api (civicrm_{entity}_create or the entity name
+ * @param string $name
+ *   Either a function of the api (civicrm_{entity}_create or the entity name.
  * return the DAO name to manipulate this function
  * eg. "civicrm_api3_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
  * @return mixed|string
@@ -338,7 +350,8 @@ function _civicrm_api3_get_DAO($name) {
 
 /**
  * return the DAO of the function or Entity
- * @param String $name is either a function of the api (civicrm_{entity}_create or the entity name
+ * @param string $name
+ *   Is either a function of the api (civicrm_{entity}_create or the entity name.
  * return the DAO name to manipulate this function
  * eg. "civicrm_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
  * @return mixed
@@ -427,9 +440,12 @@ function _civicrm_api3_store_values(&$fields, &$params, &$values) {
  * * Ideally this would be merged with _civicrm_get_query_object but we need to resolve differences in what the
  * 2 variants call
  * @param $entity
- * @param array $params as passed into api get or getcount function
- * @param array $additional_options array of options (so we can modify the filter)
- * @param bool $getCount are we just after the count
+ * @param array $params
+ *   As passed into api get or getcount function.
+ * @param array $additional_options
+ *   Array of options (so we can modify the filter).
+ * @param bool $getCount
+ *   Are we just after the count.
  *
  * @return
  */
@@ -648,9 +664,12 @@ function _civicrm_api3_dao_set_filter(&$dao, $params, $unique = TRUE, $entity) {
 
 /**
  * Apply filters (e.g. high, low) to DAO object (prior to find)
- * @param string $filterField field name of filter
- * @param string $filterValue field value of filter
- * @param object $dao DAO object
+ * @param string $filterField
+ *   Field name of filter.
+ * @param string $filterValue
+ *   Field value of filter.
+ * @param object $dao
+ *   DAO object.
  */
 function _civicrm_api3_apply_filters_to_dao($filterField, $filterValue, &$dao) {
   if (strstr($filterField, 'high')) {
@@ -675,8 +694,10 @@ function _civicrm_api3_apply_filters_to_dao($filterField, $filterValue, &$dao) {
  * Get sort, limit etc options from the params - supporting old & new formats.
  * get returnproperties for legacy
  *
- * @param array $params params array as passed into civicrm_api
- * @param bool $queryObject - is this supporting a queryobject api (e.g contact) - if so we support more options
+ * @param array $params
+ *   Params array as passed into civicrm_api.
+ * @param bool $queryObject
+ *   Is this supporting a queryobject api (e.g contact) - if so we support more options.
  * for legacy report & return a unique fields array
  *
  * @param string $entity
@@ -777,8 +798,10 @@ function _civicrm_api3_get_options_from_params(&$params, $queryObject = FALSE, $
 /**
  * Apply options (e.g. sort, limit, order by) to DAO object (prior to find)
  *
- * @param array $params params array as passed into civicrm_api
- * @param object $dao DAO object
+ * @param array $params
+ *   Params array as passed into civicrm_api.
+ * @param object $dao
+ *   DAO object.
  * @param $entity
  */
 function _civicrm_api3_apply_options_to_dao(&$params, &$dao, $entity) {
@@ -833,7 +856,8 @@ function _civicrm_api3_get_unique_name_array(&$bao) {
 /**
  * Converts an DAO object to an array
  *
- * @param CRM_Core_DAO $dao object to convert
+ * @param CRM_Core_DAO $dao
+ *   Object to convert.
  * @param array $params
  * @param bool $uniqueFields
  * @param string $entity
@@ -889,7 +913,8 @@ function _civicrm_api3_dao_to_array($dao, $params = NULL, $uniqueFields = TRUE,
  * @todo filter so only required fields are queried
  *
  * @param array $params
- * @param string $entity - entity name in CamelCase
+ * @param string $entity
+ *   Entity name in CamelCase.
  *
  * @return bool
  */
@@ -907,8 +932,10 @@ function _civicrm_api3_custom_fields_are_required($entity, $params) {
 /**
  * Converts an object to an array
  *
- * @param  object $dao           (reference) object to convert
- * @param  array $values        (reference) array
+ * @param object $dao
+ *   (reference) object to convert.
+ * @param array $values
+ *   (reference) array.
  * @param array|bool $uniqueFields
  *
  * @return array
@@ -936,8 +963,10 @@ function _civicrm_api3_object_to_array_unique_fields(&$dao, &$values) {
  *
  * @param array $params
  * @param array $values
- * @param string $extends entity that this custom field extends (e.g. contribution, event, contact)
- * @param string $entityId ID of entity per $extends
+ * @param string $extends
+ *   Entity that this custom field extends (e.g. contribution, event, contact).
+ * @param string $entityId
+ *   ID of entity per $extends.
  */
 function _civicrm_api3_custom_format_params($params, &$values, $extends, $entityId = NULL) {
   $values['custom'] = array();
@@ -1089,7 +1118,8 @@ function formatCheckBoxField(&$checkboxFieldValue, $customFieldLabel, $entity) {
  * api level. Hence the intention is to remove this function
  * & the associated param from viery_mandatory
  *
- * @param array $params       Associative array of property name/value
+ * @param array $params
+ *   Associative array of property name/value.
  *                             pairs to insert in new history.
  * @param string $daoName
  * @param bool $return
@@ -1148,9 +1178,12 @@ function _civicrm_api3_check_required_fields($params, $daoName, $return = FALSE)
 /**
  * Function to do a 'standard' api get - when the api is only doing a $bao->find then use this
  *
- * @param string $bao_name name of BAO
- * @param array $params params from api
- * @param bool $returnAsSuccess return in api success format
+ * @param string $bao_name
+ *   Name of BAO.
+ * @param array $params
+ *   Params from api.
+ * @param bool $returnAsSuccess
+ *   Return in api success format.
  * @param string $entity
  *
  * @return array
@@ -1169,9 +1202,12 @@ function _civicrm_api3_basic_get($bao_name, &$params, $returnAsSuccess = TRUE, $
 /**
  * Function to do a 'standard' api create - when the api is only doing a $bao::create then use this
  *
- * @param string $bao_name Name of BAO Class
- * @param array $params parameters passed into the api call
- * @param string $entity Entity - pass in if entity is non-standard & required $ids array
+ * @param string $bao_name
+ *   Name of BAO Class.
+ * @param array $params
+ *   Parameters passed into the api call.
+ * @param string $entity
+ *   Entity - pass in if entity is non-standard & required $ids array.
  *
  * @throws API_Exception
  * @return array
@@ -1295,12 +1331,17 @@ function _civicrm_api3_basic_delete($bao_name, &$params) {
  * Get custom data for the given entity & Add it to the returnArray as 'custom_123' = 'custom string' AND 'custom_123_1' = 'custom string'
  * Where 123 is field value & 1 is the id within the custom group data table (value ID)
  *
- * @param array $returnArray - array to append custom data too - generally $result[4] where 4 is the entity id.
- * @param string $entity  e.g membership, event
+ * @param array $returnArray
+ *   Array to append custom data too - generally $result[4] where 4 is the entity id.
+ * @param string $entity
+ *   E.g membership, event.
  * @param int $entity_id
- * @param int $groupID - per CRM_Core_BAO_CustomGroup::getTree
- * @param int $subType e.g. membership_type_id where custom data doesn't apply to all membership types
- * @param string $subName - Subtype of entity
+ * @param int $groupID
+ *   Per CRM_Core_BAO_CustomGroup::getTree.
+ * @param int $subType
+ *   E.g. membership_type_id where custom data doesn't apply to all membership types.
+ * @param string $subName
+ *   Subtype of entity.
  */
 function _civicrm_api3_custom_data_get(&$returnArray, $entity, $entity_id, $groupID = NULL, $subType = NULL, $subName = NULL) {
   $groupTree = CRM_Core_BAO_CustomGroup::getTree($entity,
@@ -1343,9 +1384,12 @@ function _civicrm_api3_custom_data_get(&$returnArray, $entity, $entity_id, $grou
  * As of writing only date was implemented.
  * @param string $entity
  * @param string $action
- * @param array $params -
- * @param array $fields response from getfields all variables are the same as per civicrm_api
- * @param bool $errorMode errorMode do intensive post fail checks?
+ * @param array $params
+ *   -.
+ * @param array $fields
+ *   Response from getfields all variables are the same as per civicrm_api.
+ * @param bool $errorMode
+ *   ErrorMode do intensive post fail checks?.
  * @throws Exception
  */
 function _civicrm_api3_validate_fields($entity, $action, &$params, $fields, $errorMode = False) {
@@ -1406,9 +1450,12 @@ function _civicrm_api3_validate_fields($entity, $action, &$params, $fields, $err
  * It also checks against the RULE:date function. This is a centralisation of code that was scattered and
  * may not be the best thing to do. There is no code level documentation on the existing functions to work off
  *
- * @param array $params params from civicrm_api
- * @param string $fieldName uniquename of field being checked
- * @param array $fieldInfo array of fields from getfields function
+ * @param array $params
+ *   Params from civicrm_api.
+ * @param string $fieldName
+ *   Uniquename of field being checked.
+ * @param array $fieldInfo
+ *   Array of fields from getfields function.
  * @throws Exception
  */
 function _civicrm_api3_validate_date(&$params, &$fieldName, &$fieldInfo) {
@@ -1449,9 +1496,12 @@ function _civicrm_api3_getValidDate($dateValue, $fieldName, $fieldType) {
 /**
  * Validate foreign constraint fields being passed into API.
  *
- * @param array $params params from civicrm_api
- * @param string $fieldName uniquename of field being checked
- * @param array $fieldInfo array of fields from getfields function
+ * @param array $params
+ *   Params from civicrm_api.
+ * @param string $fieldName
+ *   Uniquename of field being checked.
+ * @param array $fieldInfo
+ *   Array of fields from getfields function.
  * @throws Exception
  */
 function _civicrm_api3_validate_constraint(&$params, &$fieldName, &$fieldInfo) {
@@ -1467,9 +1517,12 @@ function _civicrm_api3_validate_constraint(&$params, &$fieldName, &$fieldInfo) {
 /**
  * Validate foreign constraint fields being passed into API.
  *
- * @param array $params params from civicrm_api
- * @param string $fieldName uniquename of field being checked
- * @param $fieldInfo array of fields from getfields function
+ * @param array $params
+ *   Params from civicrm_api.
+ * @param string $fieldName
+ *   Uniquename of field being checked.
+ * @param $fieldInfo
+ *   Array of fields from getfields function.
  * @throws Exception
  */
 function _civicrm_api3_validate_uniquekey(&$params, &$fieldName, &$fieldInfo) {
@@ -1493,8 +1546,10 @@ function _civicrm_api3_validate_uniquekey(&$params, &$fieldName, &$fieldInfo) {
  * Note: This will verify that 'values' is present, but it does not directly verify
  * any other parameters.
  *
- * @param string $entity entity name
- * @param array $params params from civicrm_api, including:
+ * @param string $entity
+ *   Entity name.
+ * @param array $params
+ *   Params from civicrm_api, including:.
  *   - 'values': an array of records to save
  *   - all other items: keys which identify new/pre-existing records
  * @return array|int
@@ -1577,8 +1632,10 @@ function _civicrm_api3_generic_replace_base_params($params) {
 /**
  * returns fields allowable by api
  *
- * @param $entity string Entity to query
- * @param bool $unique index by unique fields?
+ * @param $entity
+ *   String Entity to query.
+ * @param bool $unique
+ *   Index by unique fields?.
  * @param array $params
  *
  * @return array
@@ -1725,9 +1782,12 @@ function _civicrm_api3_swap_out_aliases(&$apiRequest, $fields) {
  * Validate integer fields being passed into API.
  * It currently converts the incoming value 'user_contact_id' into the id of the currently logged in user
  *
- * @param array $params params from civicrm_api
- * @param string $fieldName uniquename of field being checked
- * @param array $fieldInfo array of fields from getfields function
+ * @param array $params
+ *   Params from civicrm_api.
+ * @param string $fieldName
+ *   Uniquename of field being checked.
+ * @param array $fieldInfo
+ *   Array of fields from getfields function.
  * @param string $entity
  * @throws API_Exception
  */
@@ -1766,7 +1826,8 @@ function _civicrm_api3_validate_integer(&$params, &$fieldName, &$fieldInfo, $ent
 /**
  * Determine a contact ID using a string expression
  *
- * @param string $contactIdExpr e.g. "user_contact_id" or "@user:username"
+ * @param string $contactIdExpr
+ *   E.g. "user_contact_id" or "@user:username".
  * @return int|NULL|'unknown-user'
  */
 function  _civicrm_api3_resolve_contactID($contactIdExpr) {
@@ -1810,9 +1871,12 @@ function _civicrm_api3_validate_html(&$params, &$fieldName, $fieldInfo) {
 
 /**
  * Validate string fields being passed into API.
- * @param array $params params from civicrm_api
- * @param string $fieldName uniquename of field being checked
- * @param array $fieldInfo array of fields from getfields function
+ * @param array $params
+ *   Params from civicrm_api.
+ * @param string $fieldName
+ *   Uniquename of field being checked.
+ * @param array $fieldInfo
+ *   Array of fields from getfields function.
  * @param string $entity
  * @throws API_Exception
  * @throws Exception
@@ -1926,8 +1990,10 @@ function _civicrm_api3_api_match_pseudoconstant_value(&$value, $options, $fieldN
 /**
  * Returns the canonical name of a field
  *
- * @param $entity : api entity name (string should already be standardized - no camelCase)
- * @param $fieldName : any variation of a field's name (name, unique_name, api.alias)
+ * @param $entity
+ *   : api entity name (string should already be standardized - no camelCase).
+ * @param $fieldName
+ *   : any variation of a field's name (name, unique_name, api.alias).
  *
  * @return bool|string (string|bool) fieldName or FALSE if the field does not exist
  */