Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
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 | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
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 | * | |
301705fb | 24 | * Typically the first form will display the search criteria and its results |
6a488035 | 25 | * |
ac3ab0e4 | 26 | * The second form is used to process search results with the associated actions |
6a488035 TO |
27 | */ |
28 | class CRM_Contribute_Controller_ContributionPage extends CRM_Core_Controller { | |
29 | ||
30 | /** | |
ee0ce2ef EM |
31 | * Class constructor. |
32 | * | |
33 | * @param string $title | |
34 | * @param bool|int $action | |
35 | * @param bool $modal | |
6a488035 | 36 | */ |
00be9182 | 37 | public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) { |
6a488035 TO |
38 | |
39 | parent::__construct($title, $modal); | |
6a488035 | 40 | $this->_stateMachine = new CRM_Contribute_StateMachine_ContributionPage($this, $action); |
ee0ce2ef | 41 | // Create and instantiate the pages. |
6a488035 | 42 | $this->addPages($this->_stateMachine, $action); |
6a488035 TO |
43 | $this->addActions(); |
44 | } | |
96025800 | 45 | |
6a488035 | 46 | } |