*/
class CRM_Activity_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Activity';
+
/**
* Class constructor.
*
// Add all the actions.
$this->addActions();
+ $this->set('entity', $this->entity);
}
/**
*/
class CRM_Campaign_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Campaign';
+
/**
* Class constructor.
*
$this->addPages($this->_stateMachine, $action);
// add all the actions
- $config = CRM_Core_Config::singleton();
$this->addActions();
+ $this->set('entity', $this->entity);
}
}
*/
class CRM_Case_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Case';
+
/**
* Class constructor.
*
$this->addPages($this->_stateMachine, $action);
// add all the actions
- $config = CRM_Core_Config::singleton();
$this->addActions();
+ $this->set('entity', $this->entity);
}
}
*/
class CRM_Contact_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Contact';
+
/**
* Class constructor.
*
// add all the actions
$this->addActions();
+ $this->set('entity', $this->entity);
}
/**
*/
class CRM_Contribute_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Contribution';
+
/**
* Class constructor.
*
* @param string $title
* @param bool|int $action
* @param bool $modal
+ *
+ * @throws \CRM_Core_Exception
*/
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
$this->_stateMachine = new CRM_Contribute_StateMachine_Search($this, $action);
$this->addPages($this->_stateMachine, $action);
$this->addActions();
+ $this->set('entity', $this->entity);
}
}
*/
class CRM_Event_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Participant';
+
/**
* Class constructor.
*
// add all the actions
$this->addActions($uploadDir, $uploadNames);
+ $this->set('entity', $this->entity);
}
}
*/
class CRM_Grant_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Grant';
+
/**
* Class constructor.
*
$this->addPages($this->_stateMachine, $action);
// add all the actions
- $config = CRM_Core_Config::singleton();
$this->addActions();
+ $this->set('entity', $this->entity);
}
}
*/
class CRM_Member_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Membership';
+
/**
* Class constructor.
*
$this->addPages($this->_stateMachine, $action);
// add all the actions
- $config = CRM_Core_Config::singleton();
$this->addActions();
+ $this->set('entity', $this->entity);
}
}
*/
class CRM_Pledge_Controller_Search extends CRM_Core_Controller {
+ protected $entity = 'Pledge';
+
/**
* Class constructor.
*
$this->addPages($this->_stateMachine, $action);
// add all the actions
- $config = CRM_Core_Config::singleton();
$this->addActions();
+ $this->set('entity', $this->entity);
}
}