phpcs - Fix error, "Expected 1 newline at end of file; XXX found".
[civicrm-core.git] / CRM / Activity / Controller / Search.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License along with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 */
26
27 /**
28 *
29 * @package CRM
30 * @copyright CiviCRM LLC (c) 2004-2014
31 * $Id$
32 *
33 */
34
35 /**
36 * This class is used by the Search functionality.
37 *
38 * - the search controller is used for building/processing multiform
39 * searches.
40 *
41 * Typically the first form will display the search criteria and it's results
42 *
43 * The second form is used to process search results with the asscociated actions
44 *
45 */
46 class CRM_Activity_Controller_Search extends CRM_Core_Controller {
47
48 /**
49 * Class constructor
50 */
51 public function __construct($title = NULL, $modal = TRUE, $action = CRM_Core_Action::NONE) {
52
53 parent::__construct($title, $modal);
54
55 $this->_stateMachine = new CRM_Activity_StateMachine_Search($this, $action);
56
57 // create and instantiate the pages
58 $this->addPages($this->_stateMachine, $action);
59
60 // add all the actions
61 $this->addActions();
62 }
63
64 /**
65 * @return mixed
66 */
67 public function selectorName() {
68 return $this->get('selectorName');
69 }
70 }