X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FSearch%2FCustom%2FGroup.php;h=131c338a2faedb74fede4d3dd0ba381a3a7ecec6;hb=481a74f476c945a324382bad34630d1a78d704c7;hp=7aadc0aae4f329b970ead15c37538030d2172033;hpb=c490a46ac4bf490d3fbb31e35d24c6b43e764f00;p=civicrm-core.git diff --git a/CRM/Contact/Form/Search/Custom/Group.php b/CRM/Contact/Form/Search/Custom/Group.php index 7aadc0aae4..131c338a2f 100644 --- a/CRM/Contact/Form/Search/Custom/Group.php +++ b/CRM/Contact/Form/Search/Custom/Group.php @@ -1,7 +1,7 @@ _formValues = $formValues; $this->_columns = array( ts('Contact ID') => 'contact_id', @@ -84,7 +84,7 @@ class CRM_Contact_Form_Search_Custom_Group $this->_tags = (!empty($this->_includeTags) || !empty($this->_excludeTags)); } - function __destruct() { + public function __destruct() { // mysql drops the tables when connectiomn is terminated // cannot drop tables here, since the search might be used // in other parts after the object is destroyed @@ -93,7 +93,7 @@ class CRM_Contact_Form_Search_Custom_Group /** * @param CRM_Core_Form $form */ - function buildForm(&$form) { + public function buildForm(&$form) { $this->setTitle(ts('Include / Exclude Search')); @@ -160,8 +160,8 @@ class CRM_Contact_Form_Search_Custom_Group /** * @return array */ - function setDefaultValues() { - $defaults = array( 'andOr' => '1' ); + public function setDefaultValues() { + $defaults = array('andOr' => '1'); if (!empty($this->_formValues)) { $defaults['andOr'] = CRM_Utils_Array::value('andOr', $this->_formValues, '1'); @@ -264,7 +264,7 @@ class CRM_Contact_Form_Search_Custom_Group * @return string * @throws Exception */ - function from() { + public function from() { $iGroups = $xGroups = $iTags = $xTags = 0; @@ -567,7 +567,7 @@ WHERE gcc.group_id = {$ssGroup->id} * * @return string */ - function where($includeContactIDs = FALSE) { + public function where($includeContactIDs = FALSE) { if ($includeContactIDs) { $contactIDs = array(); @@ -598,7 +598,7 @@ WHERE gcc.group_id = {$ssGroup->id} /** * @return mixed */ - function count() { + public function count() { $sql = $this->all(); $dao = CRM_Core_DAO::executeQuery($sql); @@ -613,35 +613,35 @@ WHERE gcc.group_id = {$ssGroup->id} * * @return string */ - function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) { + public function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) { return $this->all($offset, $rowcount, $sort, FALSE, TRUE); } /** * @return array */ - function &columns() { + public function &columns() { return $this->_columns; } /** * @return null */ - function summary() { + public function summary() { return NULL; } /** * @return string */ - function templateFile() { + public function templateFile() { return 'CRM/Contact/Form/Search/Custom.tpl'; } /** * @param $title */ - function setTitle($title) { + public function setTitle($title) { if ($title) { CRM_Utils_System::setTitle($title); } @@ -653,8 +653,7 @@ WHERE gcc.group_id = {$ssGroup->id} /** * @param string $tableAlias */ - function buildACLClause($tableAlias = 'contact') { + public function buildACLClause($tableAlias = 'contact') { list($this->_aclFrom, $this->_aclWhere) = CRM_Contact_BAO_Contact_Permission::cacheClause($tableAlias); } } -