Remove call to 'summary'
[civicrm-core.git] / CRM / Contribute / 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 * @package CRM
14 * @copyright CiviCRM LLC https://civicrm.org/licensing
15 */
16
17 /**
18 * This class is used by the Search functionality.
19 *
20 * - the search controller is used for building/processing multiform
21 * searches.
22 *
23 * Typically the first form will display the search criteria and its results
24 *
25 * The second form is used to process search results with the associated actions
26 *
27 */
28 class CRM_Contribute_Controller_Search extends CRM_Core_Controller {
29
30 protected $entity = 'Contribution';
31
32 /**
33 * Class constructor.
34 *
35 * @param string $title
36 * @param bool|int $action
37 * @param bool $modal
38 *
39 * @throws \CRM_Core_Exception
40 */
41 public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
42
43 parent::__construct($title, $modal);
44 $this->_stateMachine = new CRM_Contribute_StateMachine_Search($this, $action);
45 $this->addPages($this->_stateMachine, $action);
46 $this->addActions();
47 $this->set('entity', $this->entity);
48 }
49
50 }