<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
/**
* @param $formValues
*/
- function __construct(&$formValues) {
+ public function __construct(&$formValues) {
$this->_formValues = $formValues;
$this->_columns = array(
ts('Contact ID') => 'contact_id',
$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
/**
* @param CRM_Core_Form $form
*/
- function buildForm(&$form) {
+ public function buildForm(&$form) {
$this->setTitle(ts('Include / Exclude Search'));
/**
* @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');
* @return string
* @throws Exception
*/
- function from() {
+ public function from() {
$iGroups = $xGroups = $iTags = $xTags = 0;
*
* @return string
*/
- function where($includeContactIDs = FALSE) {
+ public function where($includeContactIDs = FALSE) {
if ($includeContactIDs) {
$contactIDs = array();
}
/*
- * Functions below generally don't need to be modified
- */
+ * Functions below generally don't need to be modified
+ */
/**
* @return mixed
*/
- function count() {
+ public function count() {
$sql = $this->all();
$dao = CRM_Core_DAO::executeQuery($sql);
*
* @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);
}
/**
* @param string $tableAlias
*/
- function buildACLClause($tableAlias = 'contact') {
+ public function buildACLClause($tableAlias = 'contact') {
list($this->_aclFrom, $this->_aclWhere) = CRM_Contact_BAO_Contact_Permission::cacheClause($tableAlias);
}
}
-