*
* @return mixed
*/
- abstract function invoke($numParams,
+ abstract function invoke(
+ $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix
);
*
* @return array|bool
*/
- function commonInvoke($numParams,
+ function commonInvoke(
+ $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix, $fnPrefix
) {
*
* @return array|bool
*/
- function runHooks($civiModules, $fnSuffix, $numParams,
+ function runHooks(
+ $civiModules, $fnSuffix, $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6
) {
// $civiModules is *not* passed by reference because runHooks
*
* @return null
*/
- static function tokenValues(&$details,
+ static function tokenValues(
+ &$details,
$contactIDs,
$jobID = NULL,
$tokens = array(),
*
* @return mixed
*/
- static function alterPaymentProcessorParams($paymentObj,
+ static function alterPaymentProcessorParams(
+ $paymentObj,
&$rawParams,
&$cookedParams
) {
*
* @return array|bool
*/
- function invoke($numParams,
+ function invoke(
+ $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix) {
*
* @return mixed
*/
- function invoke($numParams,
+ function invoke(
+ $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix
) {
*
* @return mixed
*/
- function invoke($numParams,
+ function invoke(
+ $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix
) {
*
* @return mixed
*/
- function invoke($numParams,
+ function invoke(
+ $numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix) {
* @param $whereField
* @param null $additionalWhereCond
*/
- function table(&$ids,
- $tableName,
- &$fields,
- $whereField,
- $additionalWhereCond = NULL
+ function table(
+ &$ids,
+ $tableName,
+ &$fields,
+ $whereField,
+ $additionalWhereCond = NULL
) {
if (empty($ids)) {
return;
* @param null $lastExportTime
* @param bool $discoverContacts
*/
- function run($fileName,
- $lastExportTime = NULL,
- $discoverContacts = FALSE
+ function run(
+ $fileName,
+ $lastExportTime = NULL,
+ $discoverContacts = FALSE
) {
$this->_discoverContacts = $discoverContacts;
";
}
- $dao = & CRM_Core_DAO::executeQuery($sql);
+ $dao = &CRM_Core_DAO::executeQuery($sql);
$contactIDs = array();
while ($dao->fetch()) {
* @param string $author
* @param string $title
*/
- static function &pdflib($fileName,
+ static function &pdflib(
+ $fileName,
$searchPath,
&$values,
$numPages = 1,
if (isset($result['count'])) {
$count = ' count="' . $result['count'] . '" ';
}
- else { $count = "";
+ else {
+ $count = "";
}
$xml = "<?xml version=\"1.0\"?>
<ResultSet xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" $count>
if ($inquote || $inarray) {
$result .= $char;
}
- else { $result .= $char . $newline . str_repeat($tab, $tabcount);
+ else {
+ $result .= $char . $newline . str_repeat($tab, $tabcount);
}
break;
}
}
if (array_key_exists('return', $requestParams) && is_array($requestParams['return'])) {
- foreach ($requestParams['return'] as $key => $v) { $params['return.' . $key] = 1;
+ foreach ($requestParams['return'] as $key => $v) {
+ $params['return.' . $key] = 1;
}
}
return $params;
* @return void
* @static
*/
- static function add($title,
+ static function add(
+ $title,
$url,
$id,
$type,
* @return string the sanitized string
* @static
*/
- static function stripPathChars($string,
+ static function stripPathChars(
+ $string,
$search = NULL,
$replace = NULL
) {
*
* @return string
*/
- static function href($text, $path = NULL, $query = NULL, $absolute = TRUE,
+ static function href(
+ $text, $path = NULL, $query = NULL, $absolute = TRUE,
$fragment = NULL, $htmlize = TRUE, $frontend = FALSE, $forceBackend = FALSE
) {
$url = self::url($path, $query, $absolute, $fragment, $htmlize, $frontend, $forceBackend);
* @param bool $output
* @param string $disposition
*/
- static function download($name, $mimeType, &$buffer,
+ static function download(
+ $name, $mimeType, &$buffer,
$ext = NULL,
$output = TRUE,
$disposition = 'attachment'
*
* @return string $url, formatted url.
*/
- static function languageNegotiationURL($url,
+ static function languageNegotiationURL(
+ $url,
$addLanguagePart = TRUE,
$removeLanguagePart = FALSE
) {
* (optional) Sent by contribution/event reg/profile pages which uses a id
* specific extra file name if present.
*/
- static function appendTPLFile($fileName,
+ static function appendTPLFile(
+ $fileName,
&$content,
$overideFileName = NULL
) {
*/
public function loadBootStrap($params = array(), $loadUser = TRUE, $throwError = TRUE, $realPath = NULL) {
static $run_once = FALSE;
- if ($run_once) { return TRUE;
- } else { $run_once = TRUE;
+ if ($run_once) {
+ return TRUE;
+ } else {
+ $run_once = TRUE;
}
if (!($root = $this->cmsRootPath())) {
* @return string an HTML string containing a link to the given path.
*
*/
- function url($path = NULL, $query = NULL, $absolute = FALSE,
+ function url(
+ $path = NULL, $query = NULL, $absolute = FALSE,
$fragment = NULL, $htmlize = TRUE,
$frontend = FALSE, $forceBackend = FALSE
) {
*
* @return string an HTML string containing a link to the given path.
*/
- function url($path = NULL, $query = NULL, $absolute = TRUE,
+ function url(
+ $path = NULL, $query = NULL, $absolute = TRUE,
$fragment = NULL, $htmlize = TRUE,
$frontend = FALSE, $forceBackend = FALSE
) {
*
* @return string
*/
- function url($path = NULL, $query = NULL, $absolute = FALSE,
+ function url(
+ $path = NULL, $query = NULL, $absolute = FALSE,
$fragment = NULL, $htmlize = TRUE,
$frontend = FALSE, $forceBackend = FALSE
) {
* @return string The processed string
* @static
*/
- public static function &replaceResubscribeTokens($str, &$domain, &$groups, $html,
+ public static function &replaceResubscribeTokens(
+ $str, &$domain, &$groups, $html,
$contact_id, $hash
) {
if (self::token_match('resubscribe', 'group', $str)) {
* @return array
* @static
*/
- static function getTokenDetails($contactIDs,
+ static function getTokenDetails(
+ $contactIDs,
$returnProperties = NULL,
$skipOnHold = TRUE,
$skipDeceased = TRUE,
* @param string $jobID
* @return array contactDetails with hooks swapped out
*/
- public function getAnonymousTokenDetails($contactIDs = array(0),
+ public function getAnonymousTokenDetails($contactIDs = array(
+ 0),
$returnProperties = NULL,
$skipOnHold = TRUE,
$skipDeceased = TRUE,
* @return array
* @static
*/
- static function getContributionTokenDetails($contributionIDs,
+ static function getContributionTokenDetails(
+ $contributionIDs,
$returnProperties = NULL,
$extraParams = NULL,
$tokens = array(),
*
* @return CRM_Core_DAO objet that holds the results of the query
*/
- static function &query($queryType,
+ static function &query(
+ $queryType,
$daoName,
$fieldValues = NULL,
$queryData,