+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
/**
/**
* Are we restricting ourselves to a single contact.
*
- * @var boolean
+ * @var bool
*/
protected $_single = FALSE;
/**
* Are we restricting ourselves to a single contact.
*
- * @var boolean
+ * @var bool
*/
protected $_limit = NULL;
/**
* Prefix for the controller.
+ * @var string
*/
protected $_prefix = "survey_";
$this->_printButtonName = $this->getButtonName('next', 'print');
$this->_actionButtonName = $this->getButtonName('next', 'action');
- //we allow the controller to set force/reset externally,
- //useful when we are being driven by the wizard framework
- $this->_limit = CRM_Utils_Request::retrieve('limit', 'Positive', $this);
- $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
- $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this, FALSE, 'search');
- $this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean');
+ $this->loadStandardSearchOptionsFromUrl();
//operation for state machine.
$this->_operation = CRM_Utils_Request::retrieve('op', 'String', $this, FALSE, 'reserve');
//apply filter of survey contact type for search.
$contactType = CRM_Campaign_BAO_Survey::getSurveyContactType(CRM_Utils_Array::value('campaign_survey_id', $this->_formValues));
- if ($contactType && in_array($this->_operation, array(
- 'reserve',
- 'interview',
- ))
- ) {
+ if ($contactType && in_array($this->_operation, ['reserve', 'interview'])) {
$this->_formValues['contact_type'][$contactType] = 1;
}