* @param int $caseID case id
* @param boolean $skipDetails if true include details of contacts
*
- * @return returns $searchRows array of returnproperties
+ * @return array $searchRows array of return properties
*
* @static
*/
* @access public
* @static
*
- * @return object
+ * @return CRM_Core_DAO_OptionValue
*/
static function add(&$params, &$ids) {
// CRM-10921: do not reset attributes to default if this is an update
* @param integer $optionValueID has the id of the optionValue being edited, disabled ..etc
*
* @internal param string $orderBy for orderBy clause
- * @return array of option-values
+ * @return CRM_Core_DAO_OptionValue
*
* @access public
* @static
/**
* delete an existing action_schedule
*
+ * @param array $params array containing id of the action_schedule
+ * to be deleted
*
- * @param array $params (reference) array containing id of the action_schedule
- * to be deleted
- *
- * @return array (referance) returns flag true if successfull, error
- * message otherwise
+ * @return array API result array
*
* @access public
*/
* {@getfields address_delete}
* {@example AddressDelete.php 0}
*
- * @return boolean | error true if successfull, error otherwise
+ * @return array api result array
* @access public
*/
-function civicrm_api3_address_delete(&$params) {
+function civicrm_api3_address_delete($params) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
/**
* Validate the addressee or email or postal greetings
*
- * @param $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
- * @return array (reference ) null on success, error message otherwise
*
* @access public
*/
* Update an existing file
*
* This api is used for updating an existing file.
- * Required parrmeters : id of a file
+ * Required parameters : id of a file
*
- * @param Array $params an associative 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
*/
-function &civicrm_api3_file_update($params) {
+function civicrm_api3_file_update($params) {
if (!isset($params['id'])) {
return civicrm_api3_create_error('Required parameter missing');
* 2) the field is a pseudoconstant and is NOT an FK
* - the reason for this is that checking / transformation is done on pseudoconstants but
* - if the field is an FK then mysql will enforce the data quality (& we have handling on failure)
- * @todo - if may be we should define a 'resolve' key on the psuedoconstant for when these rules are not fine enough
+ * @todo - if may be we should define a 'resolve' key on the pseudoconstant for when these rules are not fine enough
*
* This function is only split out for the purpose of code clarity / comment block documentation
*
* 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 (referance) array containing id of the group
+ * @param array $params array containing id of the group
* to be deleted
*
- * @return array (referance) returns flag true if successfull, error
- * message otherwise
+ * @return array API result array
*@example GroupDelete.php
*{@getfields group_delete}
*
* 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 (reference) array containing id of the group
+ * @param array $params array containing id of the group
* to be deleted
*
- * @return array returns flag true if successfull, error
- * message otherwise
+ * @return array api result array
* {@getfields mail_settings_delete}
* @access public
*/
* Deletes an existing membership type
*
* This API is used for deleting a membership type
- * Required parrmeters : id of a membership type
+ * Required parameters : id of a membership type
*
- * @param Array $params an associative array of name/value property values of civicrm_membership_type
+ * @param array $params
*
* @return boolean true if success, else false
* @access public
/**
* Retrieve one / all contribution(s) / participant(s) linked to a
- * contrbution.
+ * contribution.
*
* @param array $params input parameters
*
*
* @return array details of found phones else error
* @access public
- * This function has been declared there instead than in api/v3/Phone.php for no specific reasons, beside to demonstate this feature (that might be useful in your module, eg if you want to implement a civicrm_api ('Phone','Dial') that you would then simply put in your module under api/v3/Phone/Dial.php .
+ * This function has been declared there instead than in api/v3/Phone.php for no specific reasons, beside to demonstrate this feature (that might be useful in your module, eg if you want to implement a civicrm_api ('Phone','Dial') that you would then simply put in your module under api/v3/Phone/Dial.php .
*/
function civicrm_api3_phone_get($params) {
/**
* Retrieve a set of pledges, given a set of input params
*
- * @param array $params (reference ) input parameters. Use interogate for possible fields
+ * @param array $params input parameters. Use interrogate for possible fields
*
- * @return array (reference ) array of pledges, if error an array with an error id and error message
+ * @return array array of pledges, if error an array with an error id and error message
* {@getfields pledge_get}
* @example PledgeGet.php
* @access public
* 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 (reference) array containing id of the group
+ * @param array $params array containing id of the group
* to be deleted
*
- * @return array (referance) returns flag true if successfull, error
- * message otherwise
+ * @return array api result array
* {@getfields survey_delete}
* @access public
*/
<?php
/**
* Test Generated example of using participant create API
- * single function to create contact w partipation & contribution. Note that in the
+ * single function to create contact w participation & contribution. Note that in the
case of 'contribution' the 'create' is implied (api.contribution.create) *
*/
function participant_create_example(){