Cleanup a couple of unnecessary references
[civicrm-core.git] / CRM / Activity / Controller / Search.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * This class is used by the Search functionality.
20 *
21 * - the search controller is used for building/processing multiform
22 * searches.
23 *
24 * Typically the first form will display the search criteria and it's results
25 *
26 * The second form is used to process search results with the associated actions
27 *
28 */
29 class CRM_Activity_Controller_Search extends CRM_Core_Controller {
30
31 protected $entity = 'Activity';
32
33 /**
34 * Class constructor.
35 *
36 * @param null $title
37 * @param bool $modal
38 * @param int|mixed|null $action
39 */
40 public function __construct($title = NULL, $modal = TRUE, $action = CRM_Core_Action::NONE) {
41
42 parent::__construct($title, $modal);
43
44 $this->_stateMachine = new CRM_Activity_StateMachine_Search($this, $action);
45
46 // Create and instantiate the pages.
47 $this->addPages($this->_stateMachine, $action);
48
49 // Add all the actions.
50 $this->addActions();
51 $this->set('entity', $this->entity);
52 }
53
54 /**
55 * Getter for selectorName.
56 *
57 * @return mixed
58 */
59 public function selectorName() {
60 return $this->get('selectorName');
61 }
62
63 }