<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
*/
class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
- /*
+ /**
* csv - common search values
*
* @var array
- * @static
*/
static $csv = array('contact_type', 'group', 'tag');
/**
- * Build the form object
+ * Build the form object.
*
*
* @return void
// add select for groups
if (!empty($searchOptions['groups'])) {
- $this->addSelect('group', array('entity' => 'group_contact', 'label' => ts('in'), 'context' => 'search', 'placeholder' => ts('- any group -')));
+ $this->addSelect('group', array(
+ 'entity' => 'group_contact',
+ 'label' => ts('in'),
+ 'context' => 'search',
+ 'placeholder' => ts('- any group -'),
+ ));
}
if (!empty($searchOptions['tags'])) {
// tag criteria
if (!empty($this->_tag)) {
- $this->addSelect('tag', array('entity' => 'entity_tag', 'label' => ts('with'), 'context' => 'search', 'placeholder' => ts('- any tag -')));
+ $this->addSelect('tag', array(
+ 'entity' => 'entity_tag',
+ 'label' => ts('with'),
+ 'context' => 'search',
+ 'placeholder' => ts('- any tag -'),
+ ));
}
}
}
/**
- * Set the default form values
+ * Set the default form values.
*
*
- * @return array the default array reference
+ * @return array
+ * the default array reference
*/
public function setDefaultValues() {
$defaults = array();
}
/**
- * Add local and global form rules
+ * Add local and global form rules.
*
*
* @return void
}
/**
- * Processing needed for buildForm and later
+ * Processing needed for buildForm and later.
*
* @return void
*/
}
/**
- * This method is called for processing a submitted search form
+ * This method is called for processing a submitted search form.
*
* @return void
*/
$this->_formValues['tag'][$tag] = 1;
}
- return;
+ return NULL;
}
/**
public function getTitle() {
return ts('Find Contacts');
}
+
}