Merge pull request #15840 from yashodha/participant_edit
[civicrm-core.git] / CRM / Campaign / 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 its results
25 *
26 * The second form is used to process search results with the associated actions
27 *
28 */
29 class CRM_Campaign_Controller_Search extends CRM_Core_Controller {
30
31 /**
32 * Class constructor.
33 *
34 * @param null $title
35 * @param bool|int $action
36 * @param bool $modal
37 */
38 public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
39
40 parent::__construct($title, $modal);
41
42 $this->_stateMachine = new CRM_Campaign_StateMachine_Search($this, $action);
43
44 // create and instantiate the pages
45 $this->addPages($this->_stateMachine, $action);
46
47 // add all the actions
48 $config = CRM_Core_Config::singleton();
49 $this->addActions();
50 }
51
52 }