/**
* Get CiviCRM Action Schedule details
* {@getfields action_schedule_create}
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_action_schedule_get($params) {
* @deprecated
*
* {@example ContactGetquick.php 0}
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
* The main purpose of the API is to provide integrators a level of stability not provided by
* the core code or schema - this means we have to provide support for api calls (where possible)
* across schema changes.
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_contribution_create_legacy_support_45(&$params) {
//legacy soft credit handling - recommended approach is chaining
/**
* modify metadata. Legacy support for contribution_id
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_contribution_delete_spec(&$params) {
$params['id']['api.aliases'] = array('contribution_id');
*
* @example CountryCreate.php Standard Create Example
*
- * @return array
- * API result array
- * {@getfields country_create}
+ * @param array $params
+ * @return array API result array
+ * API result array
+ * @throws \API_Exception
* @access public
*/
function civicrm_api3_country_create($params) {
/**
* CRM-15191 - Hack to ensure the cache gets cleared after updating a custom field
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_custom_field_setvalue($params) {
/**
* CRM-15191 - Hack to ensure the cache gets cleared after updating a custom group
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_custom_group_setvalue($params) {
*
* {@getfields dashboard_contact_delete}
* @access public
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
* Get CiviCRM domain details
* {@getfields domain_create}
* @example DomainGet.php
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
/**
* Placeholder function. This should never be called, as it doesn't have any meaning
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_entity_create($params) {
/**
* Placeholder function. This should never be called, as it doesn't have any meaning
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_entity_delete($params) {
/**
* Placeholder function. This should never be called, as it doesn't have any meaning
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_entity_getfields($params) {
/**
* modify metadata
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_entity_tag_delete_spec(&$params) {
// set as not required as tag_id also acceptable & no either/or std yet
* The main purpose of the API is to provide integrators a level of stability not provided by
* the core code or schema - this means we have to provide support for api calls (where possible)
* across schema changes.
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_event_create_legacy_support_42(&$params) {
if (!empty($params['payment_processor_id'])) {
*
* This API is used for deleting a event
*
- * @param $params
+ * @param array $params
* @return array
*
* @access public
/**
* modify metadata
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_group_contact_delete_spec(&$params) {
// set as not required no either/or std yet
/**
* @deprecated - this should be part of create but need to know we aren't missing something
- * @param $params
+ * @param array $params
* @return bool
* @throws \API_Exception
*/
/**
* Functions to inform caller that Location is obsolete and Address, Phone, Email, Website should be used
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_location_create($params) {
* Fix the reset dates on the email record based on when a mail was last delivered
* We only consider mailings that were completed and finished in the last 3 to 7 days
* Both the min and max days can be set via the params
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_mailing_update_email_resetdate($params) {
/**
* Handle creation of a Mailing Job for a Mailing.
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
/**
* Handle deletion of a Mailing Job for a Mailing.
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
/**
* @access public
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
/**
* Sends a template.
- * @param $params
+ * @param array $params
*/
function civicrm_api3_message_template_send($params) {
CRM_Core_BAO_MessageTemplates::sendTemplate($params);
/**
* @todo this should be done in the BAO not the api
* Create a default participant line item
- * @param $params
+ * @param array $params
* @param $participant
* @throws \CiviCRM_API3_Exception
*/
* @access public
* {@getfields PaymentProcessorType_get}
* @example PaymentProcessorTypeGet.php
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_payment_processor_type_get($params) {
/**
* return field specification specific to get requests
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_pledge_get_spec(&$params) {
$params['next_pay_date'] = array(
/**
* return field specification specific to get requests
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_pledge_create_spec(&$params) {
/**
* return field specification specific to get requests
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_premium_get_spec(&$params) {
$params['premiums_active']['api.aliases'] = array('is_active');
/**
* return field specification specific to create requests
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_premium_create_spec(&$params) {
$params['premiums_active']['api.aliases'] = array('is_active');
* @access public
* {@getfields RelationshipType_get}
* @example RelationshipTypeGet.php
- * @param $params
+ * @param array $params
* @return array
*/
function civicrm_api3_relationship_type_get($params) {
* @subpackage API_Settings
* @copyright CiviCRM LLC (c) 2004-2014
* @version $Id: Settings.php
- * @param $params
+ * @param array $params
* @return array
*/
/**
* Alter metadata for getfields functions
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_setting_getfields_spec(&$params) {
$params['filters'] = array('title' => 'Fields you wish to filter by e.g. array("group_name" => "CiviCRM Preferences")');
* Return default values for settings. We will domain key this as it could vary by domain (ie. urls)
* as we will be creating the option for a function rather than an value to be in the defaults
* Note that is not in place as yet
- * @param $params
+ * @param array $params
* @return array
* @throws \CiviCRM_API3_Exception
* @throws \Exception
/**
* Revert settings to defaults
- * @param $params
+ * @param array $params
* @return array
* @throws \Exception
*/
/**
* Alter metadata for getfields functions
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_setting_revert_spec(&$params) {
$params['name'] = array('title' => 'Setting Name belongs to');
/**
* Revert settings to defaults
- * @param $params
+ * @param array $params
* @return array
* @throws \CiviCRM_API3_Exception
* @throws \Exception
/**
* Alter metadata for getfields functions
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_setting_fill_spec(&$params) {
$params['name'] = array('title' => 'Setting Name belongs to');
* Really domain_id should always be set but doing an empty check because at the moment
* using crm-editable will pass an id & default won't be applied
* we did talk about id being a pseudonym for domain_id in this api so applying it here
- * @param $params
+ * @param array $params
* @return array
* @throws \Exception
*/
/**
* @deprecated - api currently not supported
- * @param $params
+ * @param array $params
* @return array
*/
function &civicrm_api3_survey_respondant_count($params) {
/**
* field id accepted for backward compatibility - unset required on id
- * @param $params
+ * @param array $params
*/
function _civicrm_api3_uf_field_delete_spec(&$params) {
// legacy support for field_id
/**
* Get CiviCRM Word Replacement details
* {@getfields word_replacement_create}
- * @param $params
+ * @param array $params
* @return array
* @throws \API_Exception
*/
* Return an array of fields for a given entity - this is the same as the BAO function but
* fields are prefixed with 'custom_' to represent api params
* @param $entity
- * @param $params
+ * @param array $params
* @return array
*/
function _civicrm_api_get_custom_fields($entity, &$params) {