/**
* Retrieve campaigns for dashboard.
*
+ * @param array $params
+ * @param bool $onlyCount
+ *
+ * @return array|int
*/
public static function getCampaignSummary($params = array(), $onlyCount = FALSE) {
$campaigns = array();
/**
* Class constructor.
+ *
+ * @param null $title
+ * @param bool|int $action
+ * @param bool $modal
*/
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
/**
* Global validation rules for the form.
+ *
+ * @param $fields
+ * @param $files
+ * @param $form
+ *
+ * @return array|bool
*/
public static function formRule($fields, $files, $form) {
$errors = array();
/**
* Hash_call: Function to perform the API call to PayPal using API signature
+ *
* @paymentProcessor is the array of payment processor settings value.
* @searchParamsnvpStr is the array of search params.
* returns an associtive array containing the response from the server.
+ *
+ * @param $paymentProcessor
+ * @param $searchParams
+ *
+ * @return array|object
+ * @throws \Exception
*/
public function invokeAPI($paymentProcessor, $searchParams) {
$merchantID = $paymentProcessor['user_name'];
*
* @param $paymentProcessor
*
- * @return \CRM_Core_Payment_Moneris
+ * @param null $paymentForm
+ * @param bool $force
+ *
+ * @throws \Exception
*/
public function __construct($mode, &$paymentProcessor, &$paymentForm = NULL, $force = FALSE) {
$this->_mode = $mode;
/**
* A dummy function required for suppressing download errors.
+ *
+ * @param $errorNumber
+ * @param $errorString
*/
public static function downloadError($errorNumber, $errorString) {
}
* @param int $defaultContributionTypeID
* @param array $membershipLineItems
* Line items specific to membership payment that is separate to contribution.
- * @throws CRM_Core_Exception
+ * @param $isPayLater
*
- * @return void
+ * @throws \CRM_Core_Exception
*/
public static function postProcessMembership(
$membershipParams, $contactID, &$form, $premiumParams,
/**
* The value is in string format. convert the value to the type of this field
* and set the field value with the appropriate type
+ *
+ * @param $value
*/
public function setValue($value) {
$this->_value = $value;
/**
* Class constructor.
+ *
+ * @param $mapperKeys
+ * @param null $mapperLocType
+ * @param null $mapperPhoneType
*/
public function __construct(&$mapperKeys, $mapperLocType = NULL, $mapperPhoneType = NULL) {
parent::__construct();
*
* @param $formatted
*
- * @return;
- * formatted containing date values
*/
public function formattedDates($calcDates, &$formatted) {
$dates = array(
protected static $_singleton;
/**
+ * Singleton function.
+ *
* @return Resolver
*/
public static function singleton() {
*
* @param string|array $id
* A callback expression; any of the following.
+ *
* @return array
* A PHP callback. Do not serialize (b/c it may include an object).
* @throws \RuntimeException
* @param string|callable $id
* @param array $args
* Ordered parameters. To call-by-reference, set an array-parameter by reference.
+ *
* @return mixed
*/
public function call($id, $args) {
private $value;
/**
+ * Class constructor.
+ *
* @param mixed $value
* The value to be returned by the dummy callback.
*/
}
/**
+ * Invoke function.
+ *
* @return mixed
*/
public function __invoke() {
private $url;
/**
+ * Class constructor.
+ *
* @param array $url
* Parsed URL (e.g. "api3://EntityName/action?foo=bar").
+ *
* @see parse_url
*/
public function __construct($url) {
*
* @return array
* Named placeholders based on the positional arguments
- * (e.g. "@1" => "firstValue").
+ * (e.g. "@1" => "firstValue").
*/
protected function createPlaceholders($prefix, $args) {
$result = array();