}
/**
- * @param $source
- * @param null $title
+ * @param string $source
+ * @param string|null $title
* @param bool $abort
*
* @return null|string
/**
* Get all the redaction rules.
*
- *
- * @param null $filter
+ * @param int $filter
*
* @return array
* array reference of all redaction rules
*
* @param array $params
* Api input array.
- * @param null $direction
+ * @param string $direction
*
* @return array|void
* @throws \CiviCRM_API3_Exception
* convert it into the same format that we use in QF and BAO object
*
* @param array $params
- * Associative array of property name/value.
- * pairs to insert in new contact.
+ * Associative array of property name/value
+ * pairs to insert in new contact.
* @param array $values
* The reformatted properties that we can use internally.
- * '
- *
* @param bool $create
- * @param null $onDuplicate
+ * @param int $onDuplicate
*
* @return array|CRM_Error
*/
*
* @param array $links
* The set of link items.
- * @param int $mask
+ * @param int|null $mask
* The mask to be used. a null mask means all items.
* @param array $values
* The array of values for parameter substitution in the link items.
* The mask to be used. a null mask means all items.
* @param array $values
* The array of values for parameter substitution in the link items.
- * @param null $op
- * @param null $objectName
+ * @param string|null $op
+ * @param string|null $objectName
* @param int $objectId
*
* @return array|null
* Build a nested array from hierarchical tags.
*
* Supports infinite levels of nesting.
- * @param null $usedFor
+ *
+ * @param string|null $usedFor
* @param bool $excludeHidden
*/
public function buildTree($usedFor = NULL, $excludeHidden = FALSE) {
* it is better to standardise to being here.
*
* @param int $invoiceId The ID to check.
- *
- * @param null $contributionID
+ * @param int|null $contributionID
* If a contribution exists pass in the contribution ID.
*
* @return bool
/**
* Get url for users to manage this recurring contribution for this processor.
*
- * @param int $entityID
- * @param null $entity
+ * @param int|null $entityID
+ * @param string|null $entity
* @param string $action
*
* @return string|null
}
$url = 'civicrm/contribute/updaterecur';
break;
+
+ default:
+ $url = '';
+ break;
}
$userId = CRM_Core_Session::singleton()->get('userID');
* Get url for users to manage this recurring contribution for this processor.
*
* @param int $entityID
- * @param null $entity
+ * @param string|null $entity
* @param string $action
*
* @return string|null
/**
* @param int $type
- * @param null $prefix
+ * @param string $prefix
* @param bool $returnUFGroupIds
*
* @return array|string
* Class constructor.
*
* @param array $mapperKeys
- * @param null $mapperLocType
- * @param null $mapperPhoneType
*/
- public function __construct(&$mapperKeys, $mapperLocType = NULL, $mapperPhoneType = NULL) {
+ public function __construct(&$mapperKeys) {
parent::__construct();
$this->_mapperKeys = &$mapperKeys;
}
* Get trigger info.
*
* @param array $info
- * @param null $tableName
+ * @param string|null $tableName
* @param bool $force
*/
public function triggerInfo(&$info, $tableName = NULL, $force = FALSE) {
*
* @param $restrict
* @param bool $skipPermission
- * @param null $profileIds
+ * @param int[]|null $profileIds
*
* @param bool $isShowEmailTaskLink
*
* @param bool $map
* @param bool $editLink
* @param bool $ufLink
- * @param null $gids
+ * @param int[]|null $gids
*
* @return array
*/
*
* @param string $baseTable
* @param string $field
- * @param null $tableAlias
+ * @param string|null $tableAlias
*/
public function setFromBase($baseTable, $field = 'id', $tableAlias = NULL) {
if (!$tableAlias) {
* @todo get rid of $recordType param. It's only because 3 separate contact tables
* are mis-declared as one that we need it.
*
- * @param null $recordType deprecated
+ * @param string $recordType deprecated
* Parameter to hack around the bad decision made in construct to misrepresent
* different tables as the same table.
*/
/**
* @param int $compID
- * @param null $grouping
+ * @param string|null $grouping
*
* @return array
*/
}
/**
- * @param null $connectionTimeout
+ * @param int|null $connectionTimeout
+ * seconds; or NULL to use system default
*/
public function __construct($connectionTimeout = NULL) {
$this->connectionTimeout = $connectionTimeout;
* 'format.is_success' => 1
* will result in a boolean success /fail being returned if that is what you need.
*
- * @param $result
+ * @param mixed $result
*
* @return bool
* true if error, false otherwise
}
/**
- * @param null $event_cart
+ * @param CRM_Event_Cart_BAO_Cart|null $event_cart
*/
public function load_associations($event_cart = NULL) {
if ($this->assocations_loaded) {
public $cart = NULL;
/**
- * XXX.
- * @param null $participant
+ * @param array $participant
*/
public function __construct($participant = NULL) {
parent::__construct();
class CRM_Event_Cart_Controller_Checkout extends CRM_Core_Controller {
/**
- * @param null $title
+ * @param string $title
* @param bool|int $action
* @param bool $modal
*/
/**
* @param int $offset
* @param int $rowcount
- * @param null $sort
+ * @param string|null $sort
* @param bool $returnSQL
*
* @return string
/**
* @param int $offset
* @param int $rowcount
- * @param null $sort
+ * @param string|null $sort
* @param bool $includeContactIDs
* @param bool $justIDs
*
}
/**
- * @param null $section
+ * @param string|null $section
*/
public function showTable($section = NULL) {
if ($section) {
* @param $tableName
* @param $fields
* @param $whereField
- * @param null $additionalWhereCond
+ * @param string|null $additionalWhereCond
*/
function getTableInfo(&$contactIDs, &$values, $tableName, &$fields, $whereField, $additionalWhereCond = NULL) {
$selectString = implode(',', array_keys($fields));
* @param $tableName
* @param $fields
* @param $whereField
- * @param null $additionalWhereCond
+ * @param string|null $additionalWhereCond
*/
function getTableInfo(&$contactIDs, &$values, $tableName, &$fields, $whereField, $additionalWhereCond = NULL) {
$selectString = implode(',', array_keys($fields));
* @param $tableName
* @param $fields
* @param $whereField
- * @param null $additionalWhereCond
+ * @param string|null $additionalWhereCond
* @param bool $flat
*/
function getTableInfo(&$contactIDs, &$values, $tableName, &$fields,