<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* The params that are sent to the query
*
* @var array
- * @access protected
*/
protected $_queryParams;
/**
* Are we restricting ourselves to a single contact
*
- * @access protected
* @var boolean
*/
protected $_single = FALSE;
/**
* Are we restricting ourselves to a single contact
*
- * @access protected
* @var boolean
*/
protected $_limit = NULL;
/**
* Prefix for the controller
- *
*/
protected $_prefix = "event_";
* The saved search ID retrieved from the GET vars
*
* @var int
- * @access protected
*/
protected $_ssID;
* Processing needed for buildForm and later
*
* @return void
- * @access public
*/
- function preProcess() {
+ public function preProcess() {
$this->set('searchFormName', 'Search');
/**
* we allow the controller to set force/reset externally, useful when we are being
* driven by the wizard framework
*/
- $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean', CRM_Core_DAO::$_nullObject);
- $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
- $this->_limit = CRM_Utils_Request::retrieve('limit', 'Positive', $this);
+ $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean', CRM_Core_DAO::$_nullObject);
+ $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
+ $this->_limit = CRM_Utils_Request::retrieve('limit', 'Positive', $this);
$this->_context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'search');
- $this->_ssID = CRM_Utils_Request::retrieve('ssID', 'Positive', $this);
+ $this->_ssID = CRM_Utils_Request::retrieve('ssID', 'Positive', $this);
$this->assign("context", $this->_context);
// get user submitted values
/**
* Build the form object
*
- * @access public
*
* @return void
*/
- function buildQuickForm() {
+ public function buildQuickForm() {
parent::buildQuickForm();
$this->addElement('text', 'sort_name', ts('Participant Name or Email'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'sort_name'));
//convert form values to clause.
$seatClause = array();
// Filter on is_test if specified in search form
- if (CRM_Utils_Array::value('participant_test', $this->_formValues) == '1' || CRM_Utils_Array::value('participant_test', $this->_formValues) == '0' ) {
+ if (CRM_Utils_Array::value('participant_test', $this->_formValues) == '1' || CRM_Utils_Array::value('participant_test', $this->_formValues) == '0') {
$seatClause[] = "( participant.is_test = {$this->_formValues['participant_test']} )";
}
if (!empty($this->_formValues['participant_status_id'])) {
* @param
*
* @return void
- * @access public
*/
- function postProcess() {
+ public function postProcess() {
if ($this->_done) {
return;
}
}
/**
- * This function is used to add the rules (mainly global rules) for form.
+ * add the rules (mainly global rules) for form.
* All local rules are added near the element
*
* @return void
- * @access public
* @see valid_date
*/
- function addRules() {}
+ public function addRules() {
+ }
/**
* Set the default form values
*
- * @access protected
*
- * @return array the default array reference
+ * @return array
+ * the default array reference
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = array();
$defaults = $this->_formValues;
return $defaults;
}
- function fixFormValues() {
+ public function fixFormValues() {
// if this search has been forced
// then see if there are any get values, and if so over-ride the post values
// note that this means that GET over-rides POST :)
/**
* @return null
*/
- function getFormValues() {
+ public function getFormValues() {
return NULL;
}
* Return a descriptive name for the page, used in wizard header
*
* @return string
- * @access public
*/
public function getTitle() {
return ts('Find Participants');
}
}
-