Merge pull request #5076 from colemanw/Attachment
[civicrm-core.git] / CRM / Activity / Controller / Search.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
39de6fd5 4 | CiviCRM version 4.6 |
6a488035 5 +--------------------------------------------------------------------+
06b69b18 6 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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 +--------------------------------------------------------------------+
d25dd0ee 25 */
6a488035
TO
26
27/**
28 *
29 * @package CRM
06b69b18 30 * @copyright CiviCRM LLC (c) 2004-2014
6a488035
TO
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 */
46class CRM_Activity_Controller_Search extends CRM_Core_Controller {
47
48 /**
100fef9d 49 * Class constructor
645ee340
EM
50 * @param null $title
51 * @param bool $modal
52 * @param int|mixed|null $action
6a488035 53 */
00be9182 54 public function __construct($title = NULL, $modal = TRUE, $action = CRM_Core_Action::NONE) {
6a488035
TO
55
56 parent::__construct($title, $modal);
57
58 $this->_stateMachine = new CRM_Activity_StateMachine_Search($this, $action);
59
60 // create and instantiate the pages
61 $this->addPages($this->_stateMachine, $action);
62
63 // add all the actions
64 $this->addActions();
65 }
66
ffd93213
EM
67 /**
68 * @return mixed
69 */
6a488035
TO
70 public function selectorName() {
71 return $this->get('selectorName');
72 }
96025800 73
6a488035 74}