* @return mixed
* @throws Exception
*/
- function run(
+ public function run(
$fileName,
$seperator = ',',
&$mapper,
*
* @return \CRM_Activity_Selector_Search
*/
- function __construct(
+ public function __construct(
&$queryParams,
$action = CRM_Core_Action::NONE,
$activityClause = NULL,
* @return array
* (reference) of action links
*/
- function &stringActionLinks() {
+ public function &stringActionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_stringActionLinks)) {
* @todo other BAO functions that use returnProperties (e.g. Query Objects) receive the array flipped & filled with 1s and
* add in essential fields (e.g. id). This should follow a regular pattern like the others
*/
- static function getGroups(
+ public static function getGroups(
$params = NULL,
$returnProperties = NULL,
$sort = NULL,
*
* @return array
*/
- static function getGroupsHierarchy(
+ public static function getGroupsHierarchy(
$groupIDs,
$parents = NULL,
$spacer = '<span class="child-indent"></span>',
*
* @return string
*/
- function all(
+ public function all(
$offset = 0, $rowcount = 0, $sort = NULL,
$includeContactIDs = FALSE, $justIDs = FALSE
) {
/**
* Construct the search query
*/
- function all(
+ public function all(
$offset = 0, $rowcount = 0, $sort = NULL,
$includeContactIDs = FALSE, $onlyIDs = FALSE
) {
* @throws Exception
* @return CRM_Contribute_DAO_Contribution
*/
- static function processContribution(
+ public static function processContribution(
&$form,
$params,
$result,
*
* @return array|mixed|null|string
*/
- static function getDisplayValueCommon(
+ public static function getDisplayValueCommon(
$value,
&$option,
$html_type,
* just format the given value
*
*/
- static function setProfileDefaults(
+ public static function setProfileDefaults(
$customFieldId,
$elementName,
&$defaults,
* @return array
* formatted custom field array
*/
- static function formatCustomField(
+ public static function formatCustomField(
$customFieldId, &$customFormatted, $value,
$customFieldExtend, $customValueId = NULL,
$entityId = NULL,
*
* @return array
*/
- static function postProcess(
+ public static function postProcess(
&$params,
&$customFields,
$entityID,
* @return boolean
* true if item is already in cache
*/
- static function inCache(
+ public static function inCache(
$group,
$name,
$componentID = NULL,
*
* @return string
*/
- static function setCache(
+ public static function setCache(
$values,
$group,
$componentID = NULL,
*
* @return CRM_Core_DAO_Domain|CRM_Core_DAO_Setting
*/
- static function dao(
+ public static function dao(
$group,
$name = NULL,
$componentID = NULL,
* @return mixed
* The data if present in the setting table, else null
*/
- static function getItem(
+ public static function getItem(
$group,
$name = NULL,
$componentID = NULL,
*
* @return void
*/
- static function setItem(
+ public static function setItem(
$value,
$group,
$name,
* @param int $createdID
* @param int $domainID
*/
- static function _setItem(
+ public static function _setItem(
$metadata,
$value,
$group,
* - description
* - help_text
*/
- static function getSettingSpecification(
+ public static function getSettingSpecification(
$componentID = NULL,
$filters = array(),
$domainID = NULL,
*
* @return array
*/
- static function valueOptions(
+ public static function valueOptions(
$group,
$name,
$system = TRUE,
* @param int $userID
* @param string $keyField
*/
- static function setValueOption(
+ public static function setValueOption(
$group,
$name,
$value,
*
* @return array
*/
- static function getTags(
+ public static function getTags(
$usedFor = 'civicrm_contact',
&$tags = array(),
$parentId = NULL,
*
* @return \CRM_Core_Form
*/
- function __construct(
+ public function __construct(
$state = NULL,
$action = CRM_Core_Action::NONE,
$method = 'post',
*
* @return HTML_QuickForm_Element could be an error object
*/
- function &add(
+ public function &add(
$type, $name, $label = '',
$attributes = '', $required = FALSE, $extra = NULL
) {
* @param string $separator
* @param bool $flipValues
*/
- function addCheckBox(
+ public function addCheckBox(
$id, $title, $values, $other = NULL,
$attributes = NULL, $required = NULL,
$javascriptMethod = NULL,
/**
* Add a currency and money element to the form
*/
- function addMoney(
+ public function addMoney(
$name,
$label,
$required = FALSE,
/**
* Add currency element to the form
*/
- function addCurrency(
+ public function addCurrency(
$name = 'currency',
$label = NULL,
$required = TRUE,
*
* @return array
*/
- static function &valuesCommon(
+ public static function &valuesCommon(
$dao, $flip = FALSE, $grouping = FALSE,
$localize = FALSE, $valueColumnName = 'label'
) {
* the values as specified by the above params
* @void
*/
- static function &values(
+ public static function &values(
$name, $flip = FALSE, $grouping = FALSE,
$localize = FALSE, $condition = NULL,
$labelColumnName = 'label', $onlyActive = TRUE, $fresh = FALSE, $keyColumnName = 'value'
*
* @return null
*/
- static function getValue(
+ public static function getValue(
$groupName,
$label,
$labelField = 'label',
*
* @return array
*/
- static function getRowValues(
+ public static function getRowValues(
$groupName, $fieldValue, $field = 'name',
$fieldType = 'String', $active = TRUE
) {
*
* @return void
*/
- static function preProcess(
+ public static function preProcess(
&$form, $subName = NULL, $subType = NULL,
$groupCount = NULL, $type = NULL, $entityID = NULL, $onlySubType = NULL
) {
* @return bool|int|null|string
* 1. false => If event having some empty spaces.
*/
- static function eventFull(
+ public static function eventFull(
$eventId,
$returnEmptySeats = FALSE,
$includeWaitingList = TRUE,
* @return array
* an array of each option id and total count
*/
- static function priceSetOptionsCount(
+ public static function priceSetOptionsCount(
$eventId,
$skipParticipantIds = array(),
$considerCounted = TRUE,
*
* @return array
*/
- static function transitionParticipants(
+ public static function transitionParticipants(
$participantIds, $toStatusId,
$fromStatusId = NULL, $returnResult = FALSE, $skipCascadeRule = FALSE
) {
*
* @return bool
*/
- static function sendTransitionParticipantMail(
+ public static function sendTransitionParticipantMail(
$participantId,
$participantValues,
$eventDetails,
*
* @return \CRM_Event_Selector_Search
*/
- function __construct(
+ public function __construct(
&$queryParams,
$action = CRM_Core_Action::NONE,
$eventClause = NULL,
*
* @return array|null
*/
- static function defaultReturnProperties(
+ public static function defaultReturnProperties(
$mode,
$includeCustomFields = TRUE
) {
*
* @return \CRM_Mailing_Selector_Search
*/
- function __construct(
+ public function __construct(
&$queryParams,
$action = CRM_Core_Action::NONE,
$mailingClause = NULL,
* @return array
* array of action links that we need to display for the browse screen
*/
- function &actionLinks() {
+ public function &actionLinks() {
if (!isset(self::$_actionLinks)) {
self::$_actionLinks = array(
CRM_Core_Action::UPDATE => array(
/**
* Send an SMS Message via the API Server
*/
- abstract function send($recipients, $header, $message, $dncID = NULL);
+ abstract public function send($recipients, $header, $message, $dncID = NULL);
/**
* Return message text. Child class could override this function to have better control over the message being sent.
*
* @return array|bool
*/
- function invoke(
+ public function invoke(
$numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6,
$fnSuffix) {
*
* @return array|NULL|object
*/
- function createTestObject($daoName, $params = array(), $numObjects = 1, $createOnly = FALSE) {
+ public function createTestObject($daoName, $params = array(), $numObjects = 1, $createOnly = FALSE) {
$objects = CRM_Core_DAO::createTestObject($daoName, $params, $numObjects, $createOnly);
if (is_array($objects)) {
$this->registerTestObjects($objects);
* @param $email1
* @param $email2
*/
- function _testEventRegistration(
+ public function _testEventRegistration(
$eventPageId, $customId, $firstName, $lastName,
$participantfname, $participantlname, $email1, $email2
) {
*
* @return null|string
*/
- function _getFinancialTrxnAmount($contId) {
+ public function _getFinancialTrxnAmount($contId) {
$query = "SELECT
SUM( ft.total_amount ) AS total
FROM civicrm_financial_trxn AS ft
*
* @return null|string
*/
- function _getFinancialItemAmount($contId) {
+ public function _getFinancialItemAmount($contId) {
$lineItem = key(CRM_Price_BAO_LineItem::getLineItems($contId, 'contribution'));
$query = "SELECT
SUM(amount)