Commit 608e6658 authored by kurund's avatar kurund

code cleanup

parent 0639ae06
......@@ -90,7 +90,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
'type' => 'next',
'name' => ts('Save'),
'spacing' => '',
'isDefault' => FALSE
'isDefault' => FALSE,
),
)
);
......@@ -143,7 +143,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
CRM_Core_Session::setStatus(
ts('The %1 role was assigned one or more permissions that may prove dangerous for users of that role to have. Please reconsider assigning %2 to them.', array(
1 => $wp_roles->role_names[$role],
2 => implode(', ', $warningPermissionNames)
2 => implode(', ', $warningPermissionNames),
)),
ts('Unsafe Permission Settings')
);
......
......@@ -55,7 +55,7 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
array(
'title' => ts('Word Replacements'),
'url' => $breadCrumbUrl,
)
),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
}
......@@ -219,7 +219,7 @@ class CRM_Admin_Form_WordReplacements extends CRM_Core_Form {
*/
public function postProcess() {
$params = $this->controller->exportValues($this->_name);
$this->_numStrings = sizeof($params['old']);
$this->_numStrings = count($params['old']);
$enabled['exactMatch'] = $enabled['wildcardMatch'] = $disabled['exactMatch'] = $disabled['wildcardMatch'] = array();
for ($i = 1; $i <= $this->_numStrings; $i++) {
......
......@@ -158,7 +158,7 @@ class CRM_Campaign_Page_AJAX {
//format multi-select group and contact types.
foreach (array(
'group',
'contact_type'
'contact_type',
) as $param) {
$paramValue = CRM_Utils_Array::value($param, $params);
if ($paramValue) {
......@@ -174,7 +174,7 @@ class CRM_Campaign_Page_AJAX {
foreach (array(
'campaign_survey_id',
'survey_interviewer_id',
'campaign_search_voter_for'
'campaign_search_voter_for',
) as $fld) {
$voterClauseParams[$fld] = CRM_Utils_Array::value($fld, $params);
}
......@@ -499,7 +499,7 @@ class CRM_Campaign_Page_AJAX {
array(
'value' => '',
'title' => ts('- select -'),
)
),
);
foreach ($campaigns as $value => $title) {
$class = NULL;
......@@ -546,7 +546,7 @@ class CRM_Campaign_Page_AJAX {
array(
'value' => '',
'title' => ts('- select -'),
)
),
);
foreach ($campGroups as $grpId => $title) {
$groups[] = array(
......@@ -565,7 +565,7 @@ class CRM_Campaign_Page_AJAX {
/**
* Retrieve campaigns as for campaign dashboard.
*
**/
*/
public function campaignList() {
//get the search criteria params.
$searchParams = explode(',', CRM_Utils_Array::value('searchCriteria', $_POST));
......@@ -635,7 +635,7 @@ class CRM_Campaign_Page_AJAX {
'sort',
'offset',
'rowCount',
'sortOrder'
'sortOrder',
) as $sortParam) {
$params[$sortParam] = $$sortParam;
}
......@@ -666,7 +666,7 @@ class CRM_Campaign_Page_AJAX {
/**
* Retrieve survey for survey dashboard.
*
**/
*/
public function surveyList() {
//get the search criteria params.
$searchParams = explode(',', CRM_Utils_Array::value('searchCriteria', $_POST));
......@@ -738,7 +738,7 @@ class CRM_Campaign_Page_AJAX {
'sort',
'offset',
'rowCount',
'sortOrder'
'sortOrder',
) as $sortParam) {
$params[$sortParam] = $$sortParam;
}
......@@ -769,7 +769,7 @@ class CRM_Campaign_Page_AJAX {
/**
* Retrieve petitions for petition dashboard.
*
**/
*/
public function petitionList() {
//get the search criteria params.
$searchParams = explode(',', CRM_Utils_Array::value('searchCriteria', $_POST));
......@@ -836,7 +836,7 @@ class CRM_Campaign_Page_AJAX {
'sort',
'offset',
'rowCount',
'sortOrder'
'sortOrder',
) as $sortParam) {
$params[$sortParam] = $$sortParam;
}
......
......@@ -53,7 +53,7 @@ class CRM_Case_Form_Task_Restore extends CRM_Case_Form_Task {
*
* @return void
*/
function preProcess() {
public function preProcess() {
parent::preProcess();
}
......
......@@ -73,7 +73,7 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
* @param array $params
* (reference ) an assoc array of name/value pairs.
*
* @return boolean
* @return bool
*/
public static function dataExists(&$params) {
// return if no data present
......@@ -129,7 +129,7 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
* @return array
* (total, added, notAdded) count of contacts added to group
*/
static function addContactsToGroup(
public static function addContactsToGroup(
$contactIds,
$groupId,
$method = 'Admin',
......@@ -137,7 +137,6 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
$tracking = NULL
) {
CRM_Utils_Hook::pre('create', 'GroupContact', $groupId, $contactIds);
list($numContactsAdded,
......@@ -179,7 +178,7 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
* @return array
* (total, removed, notRemoved) count of contacts removed to group
*/
static function removeContactsFromGroup(
public static function removeContactsFromGroup(
&$contactIds,
$groupId,
$method = 'Admin',
......@@ -329,13 +328,11 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
*
* @param bool $excludeHidden
*
* @return array
* (reference )|int $values the relevant data object values for the contact or
* the total count when $count is TRUE
*
* $access public
* @return array (reference)|int $values
* the relevant data object values for the contact or
* the total count when $count is TRUE
*/
static function &getContactGroup(
public static function &getContactGroup(
$contactId,
$status = NULL,
$numGroupContact = NULL,
......@@ -720,7 +717,7 @@ AND group_id IN ( $groupIDString )
* @return array
* (total, added, notAdded) count of contacts added to group
*/
static function bulkAddContactsToGroup(
public static function bulkAddContactsToGroup(
$contactIDs,
$groupID,
$method = 'Admin',
......@@ -797,11 +794,11 @@ AND contact_id IN ( $contactStr )
*
* @param string $fieldName
* @param string $context
* @see CRM_Core_DAO::buildOptionsContext.
* @see CRM_Core_DAO::buildOptionsContext
* @param array $props
* whatever is known about this dao object.
*
* @return Array|bool
* @return array|bool
*/
public static function buildOptions($fieldName, $context = NULL, $props = array()) {
$params = array();
......
......@@ -298,7 +298,6 @@ class CRM_Contact_Form_Domain extends CRM_Core_Form {
$emailParams['weight'] = CRM_Utils_Weight::getDefaultWeight('CRM_Core_DAO_OptionValue', $fieldValues);
}
//reset default within domain.
$emailParams['reset_default_for'] = array('domain_id' => CRM_Core_Config::domainID());
......
......@@ -37,7 +37,7 @@ class CRM_Contact_Page_View_Sunlight extends CRM_Contact_Page_View {
/**
* called when action is browse
*
* @return null
* @return void
*/
public function browse() {
// get the primary city, state and zip for the contact
......
......@@ -37,7 +37,7 @@ class CRM_Contact_Page_View_Tag extends CRM_Core_Page {
/**
* called when action is browse
*
* @return null
* @return void
*/
public function browse() {
$controller = new CRM_Core_Controller_Simple('CRM_Tag_Form_Tag', ts('Contact Tags'), $this->_action);
......
......@@ -44,7 +44,7 @@ class CRM_Contact_StateMachine_Search extends CRM_Core_StateMachine {
/**
* Class constructor
*/
function __construct($controller, $action = CRM_Core_Action::NONE) {
public function __construct($controller, $action = CRM_Core_Action::NONE) {
parent::__construct($controller, $action);
$this->_pages = array();
......
......@@ -47,7 +47,7 @@ class CRM_Core_BAO_ConfigSetting {
* @param array $params
* Associated array of civicrm variables.
*
* @return null
* @return void
*/
public static function create($params) {
self::add($params);
......@@ -63,7 +63,7 @@ class CRM_Core_BAO_ConfigSetting {
* @param array $params
* Associated array of civicrm variables.
*
* @return null
* @return void
*/
public static function add(&$params) {
self::fixParams($params);
......@@ -71,8 +71,8 @@ class CRM_Core_BAO_ConfigSetting {
// also set a template url so js files can use this
// CRM-6194
$params['civiRelativeURL'] = CRM_Utils_System::url('CIVI_BASE_TEMPLATE');
$params['civiRelativeURL'] =
str_replace(
$params['civiRelativeURL']
= str_replace(
'CIVI_BASE_TEMPLATE',
'',
$params['civiRelativeURL']
......@@ -144,7 +144,7 @@ class CRM_Core_BAO_ConfigSetting {
* @param array $params
* Associated array of civicrm variables.
*
* @return null
* @return void
*/
public static function fixParams(&$params) {
// in our old civicrm.settings.php we were using ISO code for country and
......@@ -178,7 +178,7 @@ class CRM_Core_BAO_ConfigSetting {
* @param array $values
* Associated array of civicrm variables stored in db.
*
* @return null
* @return void
*/
public static function formatParams(&$params, &$values) {
if (empty($params) ||
......@@ -228,7 +228,7 @@ class CRM_Core_BAO_ConfigSetting {
$defaults = unserialize($domain->config_backend);
if ($defaults === FALSE || !is_array($defaults)) {
$defaults = array();
return;
return FALSE;
}
$skipVars = self::skipVars();
......@@ -519,7 +519,6 @@ class CRM_Core_BAO_ConfigSetting {
list($oldURL, $oldDir, $oldSiteName, $oldSiteRoot) = self::getConfigSettings();
list($newURL, $newDir, $newSiteName, $newSiteRoot) = self::getBestGuessSettings();
// retrieve these values from the argument list
$variables = array('URL', 'Dir', 'SiteName', 'SiteRoot', 'Val_1', 'Val_2', 'Val_3');
$states = array('old', 'new');
......@@ -656,7 +655,7 @@ WHERE option_group_id = (
* @param string $componentName
* Name of the component to be enabled, needs to be valid.
*
* @return boolean
* @return bool
* true if valid component name and enabling succeeds, else false
*/
public static function enableComponent($componentName) {
......@@ -672,8 +671,8 @@ WHERE option_group_id = (
}
// get enabled-components from DB and add to the list
$enabledComponents =
CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_components', NULL, array());
$enabledComponents
= CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_components', NULL, array());
$enabledComponents[] = $componentName;
self::setEnabledComponents($enabledComponents);
......@@ -691,8 +690,8 @@ WHERE option_group_id = (
}
// get enabled-components from DB and add to the list
$enabledComponents =
CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_components', NULL, array());
$enabledComponents
= CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_components', NULL, array());
$enabledComponents = array_diff($enabledComponents, array($componentName));
self::setEnabledComponents($enabledComponents);
......
......@@ -99,10 +99,8 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
/**
* Delete the Message Templates
*
*
* @param int $messageTemplatesID
*
* @return object
* @return void
*/
public static function del($messageTemplatesID) {
// make sure messageTemplatesID is an integer
......@@ -229,7 +227,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
$smarty = CRM_Core_Smarty::singleton();
foreach (array(
'text',
'html'
'html',
) as $elem) {
$$elem = $smarty->fetch("string:{$$elem}");
}
......@@ -274,12 +272,12 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
/**
* Revert a message template to its default subject+text+HTML state
*
* @param int id id of the template
* @param int $id id of the template
*
* @return void
*/
public static function revert($id) {
$diverted = new self;
$diverted = new CRM_Core_BAO_MessageTemplate();
$diverted->id = (int) $id;
$diverted->find(1);
......@@ -287,7 +285,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
CRM_Core_Error::fatal(ts('Did not find a message template with id of %1.', array(1 => $id)));
}
$orig = new self;
$orig = new CRM_Core_BAO_MessageTemplate();
$orig->workflow_id = $diverted->workflow_id;
$orig->is_reserved = 1;
$orig->find(1);
......@@ -379,7 +377,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
else {
CRM_Core_Error::fatal(ts('No such message template: option group %1, option value %2.', array(
1 => $params['groupName'],
2 => $params['valueName']
2 => $params['valueName'],
)));
}
}
......@@ -409,7 +407,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
// replace tokens in the three elements (in subject as if it was the text body)
$domain = CRM_Core_BAO_Domain::getDomain();
$hookTokens = array();
$mailing = new CRM_Mailing_BAO_Mailing;
$mailing = new CRM_Mailing_BAO_Mailing();
$mailing->body_text = $text;
$mailing->body_html = $html;
$tokens = $mailing->getTokens();
......@@ -452,7 +450,6 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
$text = CRM_Utils_Token::replaceContactTokens($text, $contact, FALSE, $tokens['text'], FALSE, TRUE);
$html = CRM_Utils_Token::replaceContactTokens($html, $contact, FALSE, $tokens['html'], FALSE, TRUE);
$contactArray = array($contactID => $contact);
CRM_Utils_Hook::tokenValues($contactArray,
array($contactID),
......@@ -472,8 +469,6 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
$subject = "{strip}$subject{/strip}";
// parse the three elements with Smarty
$smarty = CRM_Core_Smarty::singleton();
foreach ($params['tplParams'] as $name => $value) {
$smarty->assign($name, $value);
......@@ -481,7 +476,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
foreach (array(
'subject',
'text',
'html'
'html',
) as $elem) {
$$elem = $smarty->fetch("string:{$$elem}");
}
......
......@@ -106,7 +106,7 @@ class CRM_Core_BAO_UFField extends CRM_Core_DAO_UFField {
* @param int $id
* Field Id.
*
* @return boolean
* @return bool
*
*/
public static function del($id) {
......@@ -360,7 +360,7 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
*
* @param int $UFFieldId
*
* @return boolean
* @return bool
* false if custom field are disabled else true
*/
public static function checkUFStatus($UFFieldId) {
......@@ -450,11 +450,11 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
* @param array $optional
* Array of types those are optional.
*
* @return boolean
* @return bool
*/
public static function checkValidProfileType($ufGroupId, $required, $optional = NULL) {
if (!is_array($required) || empty($required)) {
return;
return FALSE;
}
$ufGroup = new CRM_Core_DAO_UFGroup();
......@@ -569,7 +569,6 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
* @return string
* profile group_type
*
* TODO Why is this function in this class? It seems to be about the UFGroup.
*/
public static function getProfileType($ufGroupId, $returnMixType = TRUE, $onlyPure = FALSE, $skipComponentType = FALSE) {
$ufGroup = new CRM_Core_DAO_UFGroup();
......@@ -590,10 +589,8 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
* True if only pure profiles are required.
* @param bool $skipComponentType
*
* @return string
* profile group_type
* @return string profile group_type
*
* TODO Why is this function in this class? It seems to be about the UFGroup.
*/
public static function calculateProfileType($ufGroupType, $returnMixType = TRUE, $onlyPure = FALSE, $skipComponentType = FALSE) {
// profile types
......@@ -728,7 +725,7 @@ SELECT ufg.id as id
*
* @param int $profileID
*
* @return boolean
* @return bool
*/
public static function checkSearchableORInSelector($profileID) {
$result = FALSE;
......@@ -802,7 +799,7 @@ SELECT id
'return' => 'field_name, is_required',
'options' => array(
'limit' => 0,
)
),
)
));
//check for valid fields ( fields that are present in billing block )
......@@ -831,7 +828,7 @@ SELECT id
}
if (!in_array($prefixName, $validProfileFields)) {
return;
return FALSE;
}
if (!empty($index) && (
......@@ -1029,7 +1026,7 @@ SELECT id
));
//unset selected fields
foreach ($groupFieldList as $key => $value) {
if (is_integer($key)) {
if (is_int($key)) {
unset($fields['Individual'][$value], $fields['Household'][$value], $fields['Organization'][$value]);
continue;
}
......
......@@ -60,7 +60,7 @@ class CRM_Core_Form_Tag {
*
* @return void
*/
static function buildQuickForm(
public static function buildQuickForm(
&$form, $parentNames, $entityTable, $entityId = NULL, $skipTagCreate = FALSE,
$skipEntityAction = FALSE, $tagsetElementName = NULL) {
$tagset = $form->_entityTagValues = array();
......
......@@ -47,7 +47,7 @@ class CRM_Core_Permission_UnitTests extends CRM_Core_Permission_Base {
* @param string $str
* The permission to check.
*
* @return boolean
* @return bool
* true if yes, else false
*/
public function check($str) {
......
......@@ -117,7 +117,7 @@ class CRM_Dashlet_Page_Blog extends CRM_Core_Page {
$item = (array) $item;
// Clean up description - remove tags that would break dashboard layout
$description = preg_replace('#<h[1-3][^>]*>(.+?)</h[1-3][^>]*>#s', '<h4>$1</h4>', $item['description']);
$item['description'] = strip_tags($description, "<a><p><h4><h5><h6><b><i><em><strong><ol><ul><li><dd><dt><code><pre><br>");
$item['description'] = strip_tags($description, "<a><p><h4><h5><h6><b><i><em><strong><ol><ul><li><dd><dt><code><pre><br/>");
$blog[] = $item;
}
if ($blog) {
......
......@@ -178,7 +178,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
$pre = $post = array();
foreach (array(
'pre',
'post'
'post',
) as $keys) {
if (isset($this->_values['additional_custom_' . $keys . '_id'])) {
$this->buildCustom($this->_values['additional_custom_' . $keys . '_id'], 'additionalCustom' . ucfirst($keys), TRUE);
......@@ -186,7 +186,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
}
foreach (array(
'first_name',
'last_name'
'last_name',
) as $name) {
if (array_key_exists($name, $$keys) &&
CRM_Utils_Array::value('is_required', CRM_Utils_Array::value($name, $$keys))
......@@ -258,20 +258,20 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
if ($this->_requireApproval) {
$statusMessage = ts("It looks like you are now registering a group of %1 participants. The event has %2 available spaces (you will not be wait listed). Registration for this event requires approval. You will receive an email once your registration has been reviewed.", array(
1 => ++$processedCnt,
2 => $spaces
2 => $spaces,
));
}
else {
$statusMessage = ts("It looks like you are now registering a group of %1 participants. The event has %2 available spaces (you will not be wait listed).", array(
1 => ++$processedCnt,
2 => $spaces
2 => $spaces,
));
}
}
else {
$statusMessage = ts("It looks like you are now registering a group of %1 participants. The event has %2 available spaces (you will not be wait listed). Please go back to the main registration page and reduce the number of additional people. You will also need to complete payment information.", array(
1 => ++$processedCnt,
2 => $spaces
2 => $spaces,
));
$allowToProceed = FALSE;
}
......@@ -365,7 +365,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
'name' => ts('Skip Participant'),
'subName' => 'skip',
'icon' => 'seek-next',
)
),
)
);
}
......@@ -487,7 +487,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
) {
$errors['_qf_default'] = ts('It looks like event has only %2 seats available and you are trying to register %1 participants, so could you please select price options accordingly.', array(
1 => $totalParticipants,
2 => $self->_availableRegistrations
2 => $self->_availableRegistrations,
));
}
}
......@@ -763,7 +763,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
*
* @param bool $isButtonJs
*
* @return boolean
* @return bool
* ture on success.
*/
public function isLastParticipant($isButtonJs = FALSE) {
......@@ -777,7 +777,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
/**
* Reset values for all options those are full.
*
**/
*/
public function resetElementValue($optionFullIds = array()) {
if (!is_array($optionFullIds) ||
empty($optionFullIds) ||
......@@ -847,7 +847,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
foreach (array(
'constantValues',
'submitValues',
'defaultValues'
'defaultValues',
) as $val) {
$values = &$this->{"_$val"};
if (!is_array($values) || empty($values)) {
......
......@@ -255,8 +255,8 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
// add this event's default participant role to defaults array
// (for cases where participant_role field is included in form via profile)
if ($this->_values['event']['default_role_id']) {
$this->_defaults['participant_role'] =
$this->_defaults['participant_role_id'] = $this->_values['event']['default_role_id'];
$this->_defaults['participant_role']
= $this->_defaults['participant_role_id'] = $this->_values['event']['default_role_id'];
}
if ($this->_priceSetId && !empty($this->_feeBlock)) {
foreach ($this->_feeBlock as $key => $val) {
......@@ -751,7 +751,6 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
$dbTotalCount = CRM_Utils_Array::value($optId, $recordedOptionsCount, 0);
$currentTotalCount = CRM_Utils_Array::value($optId, $currentOptionsCount, 0);
$totalCount = $currentTotalCount + $dbTotalCount;
$isFull = FALSE;
if ($maxValue &&
......
......@@ -111,64 +111,64 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
self::$_tabLinks = array();
}
if (!isset(self::$_tabLinks[$cacheKey])) {
self::$_tabLinks[$cacheKey]['settings'] =
array(
self::$_tabLinks[$cacheKey]['settings']
= array(
'title' => ts('Info and Settings'),
'url' => 'civicrm/event/manage/settings',
'field' => 'id',
);
self::$_tabLinks[$cacheKey]['location'] =
array(
self::$_tabLinks[$cacheKey]['location']
= array(
'title' => ts('Location'),
'url' => 'civicrm/event/manage/location',
'field' => 'loc_block_id',
);
self::$_tabLinks[$cacheKey]['fee'] =
array(
self::$_tabLinks[$cacheKey]['fee']
= array(
'title' => ts('Fees'),
'url' => 'civicrm/event/manage/fee',
'field' => 'is_monetary',
);
self::$_tabLinks[$cacheKey]['registration'] =
array(
self::$_tabLinks[$cacheKey]['registration']
= array(
'title' => ts('Online Registration'),
'url' => 'civicrm/event/manage/registration',
'field' => 'is_online_registration',
);
if (CRM_Core_Permission::check('administer CiviCRM')) {
self::$_tabLinks[$cacheKey]['reminder'] =
array(
self::$_tabLinks[$cacheKey]['reminder']
= array(
'title' => ts('Schedule Reminders'),
'url' => 'civicrm/event/manage/reminder',
'field' => 'reminder',
);
}
self::$_tabLinks[$cacheKey]['conference'] =
array(
self::$_tabLinks[$cacheKey]['conference']