3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class is used by the Search functionality.
21 * - the search controller is used for building/processing multiform
24 * Typically the first form will display the search criteria and its results
26 * The second form is used to process search results with the associated actions
29 class CRM_PCP_Controller_PCP
extends CRM_Core_Controller
{
34 * @param string $title
35 * @param bool|int $action
38 public function __construct($title = NULL, $action = CRM_Core_Action
::NONE
, $modal = TRUE) {
40 parent
::__construct($title, $modal);
42 $this->_stateMachine
= new CRM_PCP_StateMachine_PCP($this, $action);
44 // create and instantiate the pages
45 $this->addPages($this->_stateMachine
, $action);
47 // add all the actions
48 $uploadNames = $this->get('uploadNames');
49 if (!empty($uploadNames)) {
50 $config = CRM_Core_Config
::singleton();
51 $this->addActions($config->customFileUploadDir
, $uploadNames);