public function preProcess() {
$this->_id = $this->get('id');
if ($this->_id) {
- $breadCrumb = array(array('title' => ts('Manage Groups'),
+ $breadCrumb = array(array(
+ 'title' => ts('Manage Groups'),
'url' => CRM_Utils_System::url('civicrm/group',
'reset=1'
),
'id' => $this->_id,
'title' => $this->_title,
'saved_search_id' =>
- isset($this->_groupValues['saved_search_id']) ?
- $this->_groupValues['saved_search_id'] : '',
+ isset($this->_groupValues['saved_search_id']) ? $this->_groupValues['saved_search_id'] : '',
);
if (isset($this->_groupValues['saved_search_id'])) {
$groupValues['mapping_id'] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_SavedSearch',
'search_custom_id'
);
}
- if (!empty($this->_groupValues['created_id']))
+ if (!empty($this->_groupValues['created_id'])) {
$groupValues['created_by'] =
- CRM_Core_DAO::getFieldValue("CRM_Contact_DAO_Contact", $this->_groupValues['created_id'] , 'sort_name', 'id');
+ CRM_Core_DAO::getFieldValue("CRM_Contact_DAO_Contact", $this->_groupValues['created_id'], 'sort_name', 'id');
+ }
if (!empty($this->_groupValues['modified_id'])) {
$groupValues['modified_by'] =
- CRM_Core_DAO::getFieldValue("CRM_Contact_DAO_Contact", $this->_groupValues['modified_id'] , 'sort_name', 'id');
+ CRM_Core_DAO::getFieldValue("CRM_Contact_DAO_Contact", $this->_groupValues['modified_id'], 'sort_name', 'id');
}
$this->assign_by_ref('group', $groupValues);
array(
'type' => 'upload',
'name' =>
- ($this->_action == CRM_Core_Action::ADD) ?
- ts('Continue') : ts('Save'),
+ ($this->_action == CRM_Core_Action::ADD) ? ts('Continue') : ts('Save'),
'isDefault' => TRUE,
),
array(
}
else {
$sortMapper = array(
- 0 => 'groups.title', 1 => 'count', 2 => 'createdBy.sort_name', 3 => '',
- 4 => 'groups.group_type', 5 => 'groups.visibility',
+ 0 => 'groups.title',
+ 1 => 'count',
+ 2 => 'createdBy.sort_name',
+ 3 => '',
+ 4 => 'groups.group_type',
+ 5 => 'groups.visibility',
);
$sEcho = CRM_Utils_Type::escape($_REQUEST['sEcho'], 'Integer');
if (empty($params['showOrgInfo'])) {
unset($selectorElements[6]);
}
- //add setting so this can be tested by unit test
- //@todo - ideally the portion of this that retrieves the groups should be extracted into a function separate
- // from the one which deals with web inputs & outputs so we have a properly testable & re-usable function
+ //add setting so this can be tested by unit test
+ //@todo - ideally the portion of this that retrieves the groups should be extracted into a function separate
+ // from the one which deals with web inputs & outputs so we have a properly testable & re-usable function
if(!empty($params['is_unit_test'])) {
return array($groups, $iFilteredTotal);
}
*
* @return array self::$_links array of action links
*/
- public function &links() {}
+ public function &links() {
+ }
/**
* Return class name of edit form
}
public function search() {
- if ($this->_action &
- (CRM_Core_Action::ADD |
+ if ($this->_action & (CRM_Core_Action::ADD |
CRM_Core_Action::UPDATE |
CRM_Core_Action::DELETE
)