*
* @var string
*/
- protected $_context = NULL;
+ protected $_context;
/**
* The list of tasks or actions that a searcher can perform on a result set.
/**
* Common buildForm tasks required by all searches.
+ *
+ * @throws \CRM_Core_Exception
*/
public function buildQuickForm() {
CRM_Core_Resources::singleton()
*
* The goal is to describe all fields in metadata and handle from metadata rather
* than existing ad hoc handling.
+ *
+ * @throws \CiviCRM_API3_Exception
*/
public function addFormFieldsFromMetadata() {
$this->addFormRule(['CRM_Core_Form_Search', 'formRule'], $this);
*
* Note that for translation purposes the full string works better than using 'prefix' hence we use override-able functions
* to define the string.
+ *
+ * @throws \CiviCRM_API3_Exception
*/
protected function addSortNameField() {
$title = civicrm_api3('setting', 'getvalue', ['name' => 'includeEmailInName', 'group' => 'Search Preferences']) ? $this->getSortNameLabelWithEmail() : $this->getSortNameLabelWithOutEmail();
/**
* Add generic fields that specify the contact.
+ *
+ * @throws \CiviCRM_API3_Exception
*/
protected function addContactSearchFields() {
if (!$this->isFormInViewOrEditMode()) {
/**
* we allow the controller to set force/reset externally, useful when we are being
* driven by the wizard framework
+ *
+ * @throws \CRM_Core_Exception
*/
protected function loadStandardSearchOptionsFromUrl() {
$this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean');