$tabs = $form->get('tabHeader');
if (is_array($tabs)) {
- $current = false;
+ $current = FALSE;
foreach ($tabs as $subPage => $pageVal) {
if ($current) {
$next = $subPage;
foreach ($oldWebsiteValues as $idx => $value) {
if (! empty($value['url'])) {
- $oldEmpty = false;
+ $oldEmpty = FALSE;
$old[] = array('website_type_id' => $value['website_type_id'], 'url' => $value['url']);
}
}
foreach ($newWebsiteValues as $idx => $value) {
if (! empty($value['url'])) {
- $newEmpty = false;
+ $newEmpty = FALSE;
$new[] = array('website_type_id' => $value['website_type_id'], 'url' => $value['url']);
}
}
// same number of entries, check if they are exactly the same
foreach ($old as $oldID => $oldValues) {
- $found = false;
+ $found = FALSE;
foreach ($new as $newID => $newValues) {
if (
$old['website_type_id'] == $new['website_type_id'] &&
foreach ($oldEmailValues as $idx => $value) {
if (! empty($value['email'])) {
- $oldEmpty = false;
+ $oldEmpty = FALSE;
$old[] = array(
'email' => $value['email'],
'location_type_id' => $value['location_type_id'],
foreach ($newEmailValues as $idx => $value) {
if (! empty($value['email'])) {
- $newEmpty = false;
+ $newEmpty = FALSE;
$new[] = array(
'email' => $value['email'],
'location_type_id' => $value['location_type_id'],
// same number of entries, check if they are exactly the same
foreach ($old as $oldID => $oldValues) {
- $found = false;
+ $found = FALSE;
foreach ($new as $newID => $newValues) {
if (
$old['email_type_id'] == $new['email_type_id'] &&
);
// If group has children, add class for link to view children
- $values[$object->id]['is_parent'] = false;
+ $values[$object->id]['is_parent'] = FALSE;
if (array_key_exists('children', $values[$object->id])) {
$values[$object->id]['class'][] = "crm-group-parent";
$values[$object->id]['is_parent'] = TRUE;
* @param $groupIDs
* Of group that we are checking against.
*
- * @return boolean TRUE if we did not regenerate, false if we did
+ * @return boolean TRUE if we did not regenerate, FALSE if we did
*/
public static function check($groupIDs) {
if (empty($groupIDs)) {
* @param int $limit
* Limits the number of groups we evaluate.
*
- * @return boolean TRUE if we did not regenerate, false if we did
+ * @return boolean TRUE if we did not regenerate, FALSE if we did
*/
public static function loadAll($groupIDs = NULL, $limit = 0) {
// ensure that all the smart groups are loaded
}
else {
$className = $this->_modeValue['taskClassName'];
- $tasks += $className::permissionedTaskTitles($permission, false);
+ $tasks += $className::permissionedTaskTitles($permission, FALSE);
}
if (isset($this->_ssID)) {
$this->_params,
$this->_returnProperties,
$this->_action,
- false, TRUE,
+ FALSE, TRUE,
$this->_context,
$this->_contextMenu
);
$selector = new self::$_selectorName(
$this->_params,
$this->_action,
- NULL, false, NULL,
+ NULL, FALSE, NULL,
"search", "advanced"
);
}
$this->_params,
$this->_returnProperties,
$this->_action,
- false,
+ FALSE,
$searchChildGroups,
$this->_context,
$this->_contextMenu
$this->_params,
$this->_action,
NULL,
- false,
+ FALSE,
NULL,
"search",
"advanced"
$v2empty = TRUE;
foreach ($val as $vk => $vv) {
if (!empty($vk)) {
- $v2empty = false;
+ $v2empty = FALSE;
}
}
if ($v2empty) {
$used_for = CRM_Core_OptionGroup::values('tag_used_for');
$tagsTypes = array();
- $showAllTagTypes = false;
+ $showAllTagTypes = FALSE;
foreach ($used_for as $key => $value) {
//check tags for every type and find if there are any defined
$tags = CRM_Core_BAO_Tag::getTagsUsedFor($key, FALSE, TRUE, NULL);
);
$config = CRM_Core_Config::singleton();
- if ($config->wkhtmltopdfPath == false) {
+ if ($config->wkhtmltopdfPath == FALSE) {
$form->add(
'text',
'stationery',
*
* @param int $entity_id
* @return bool
- * TRUE on success, false otherwise.
+ * TRUE on success, FALSE otherwise.
* @static
*/
public static function deleteFinancialTrxn($entity_id) {
}
// CRM-14983: verify if values are comma separated convert to array
- if (!is_array($value) && (strpos($value,',') !== false || strstr($value, '(')) && empty($isCustomField) && $params['operator'][$key][$k] == 'IN') {
+ if (!is_array($value) && (strpos($value,',') !== FALSE || strstr($value, '(')) && empty($isCustomField) && $params['operator'][$key][$k] == 'IN') {
preg_match('#\((.*?)\)#', $value, $match);
$tmpArray = explode(',', $match[1]);
$value = array_combine(array_values($tmpArray),array_values($tmpArray));
}
list($details) = CRM_Utils_Token::getTokenDetails(array($contactId),
$returnProperties,
- NULL, NULL, false,
+ NULL, NULL, FALSE,
$tokens,
'CRM_Core_BAO_MessageTemplate');
$contact = reset($details);
if ($$bodyType) {
CRM_Utils_Token::replaceGreetingTokens($$bodyType, NULL, $contact['contact_id']);
$$bodyType = CRM_Utils_Token::replaceDomainTokens($$bodyType, $domain, TRUE, $tokens, TRUE);
- $$bodyType = CRM_Utils_Token::replaceContactTokens($$bodyType, $contact, false, $tokens, false, TRUE);
+ $$bodyType = CRM_Utils_Token::replaceContactTokens($$bodyType, $contact, FALSE, $tokens, FALSE, TRUE);
$$bodyType = CRM_Utils_Token::replaceComponentTokens($$bodyType, $contact, $tokens, TRUE);
$$bodyType = CRM_Utils_Token::replaceHookTokens($$bodyType, $contact , $categories, TRUE);
}
}
// do replacements in message subject
- $messageSubject = CRM_Utils_Token::replaceContactTokens($body_subject, $contact, false, $tokens);
+ $messageSubject = CRM_Utils_Token::replaceContactTokens($body_subject, $contact, FALSE, $tokens);
$messageSubject = CRM_Utils_Token::replaceDomainTokens($messageSubject, $domain, TRUE, $tokens);
$messageSubject = CRM_Utils_Token::replaceComponentTokens($messageSubject, $contact, $tokens, TRUE);
$messageSubject = CRM_Utils_Token::replaceHookTokens($messageSubject, $contact, $categories, TRUE);
$newWeight = $newWeight + 1;
// since this is a last node we don't need to increment other nodes
- $incrementOtherNodes = false;
+ $incrementOtherNodes = FALSE;
}
$transaction = new CRM_Core_Transaction();
* @param bool $showStatus
* Do we need to set status or not.
*
- * @return mixed|NULL $return no of deleted notes on success, false otherwise@access public
+ * @return mixed|NULL $return no of deleted notes on success, FALSE otherwise@access public
* @static
*/
public static function del($id, $showStatus = TRUE) {
*/
private static function buildNoteTree($parentId, $maxDepth = 0, $snippet = FALSE, &$tree = array(), $depth = 0) {
if ($maxDepth && $depth > $maxDepth) {
- return false;
+ return FALSE;
}
// get direct children of given parentId note
* @return bool
*/
public static function is_serialized($string) {
- return (@unserialize($string) !== false);
+ return (@unserialize($string) !== FALSE);
}
/**
*
* @param array $params
*
- * @return TRUE if successfully created, false otherwise
+ * @return TRUE if successfully created, FALSE otherwise
*
* @static
*/
* Name of the table to be created.
*
* @return bool
- * TRUE if successfully deleted, false otherwise.
+ * TRUE if successfully deleted, FALSE otherwise.
*
* @static
*/
$form->add('hidden', 'priceSetId', $form->_priceSetId);
// CRM-14492 Admin price fields should show up on event registration if user has 'administer CiviCRM' permissions
- $adminFieldVisible = false;
+ $adminFieldVisible = FALSE;
if (CRM_Core_Permission::check('administer CiviCRM')) {
$adminFieldVisible = TRUE;
}
$visibility = CRM_Core_PseudoConstant::visibility('name');
// CRM-14492 Admin price fields should show up on event registration if user has 'administer CiviCRM' permissions
- $adminFieldVisible = false;
+ $adminFieldVisible = FALSE;
if (CRM_Core_Permission::check('administer CiviCRM')) {
$adminFieldVisible = TRUE;
}
foreach ($priceSetFields as $fid => $fieldValues) {
if (!is_array($fieldValues['options']) ||
empty($fieldValues['options']) ||
- (CRM_Utils_Array::value('visibility_id', $fieldValues) != array_search('public', $visibility) && $adminFieldVisible == false)
+ (CRM_Utils_Array::value('visibility_id', $fieldValues) != array_search('public', $visibility) && $adminFieldVisible == FALSE)
) {
continue;
}
if (empty($contactIdClause)) {
$contactIdClause = "AND contact_id = %3";
}
- if (strpos($table, 'civicrm_value') !== false) {
+ if (strpos($table, 'civicrm_value') !== FALSE) {
$contactIdClause = "AND entity_id = %3";
}
}