4 +--------------------------------------------------------------------+
5 | CiviCRM version 4.3 |
6 +--------------------------------------------------------------------+
7 | Copyright CiviCRM LLC (c) 2004-2013 |
8 +--------------------------------------------------------------------+
9 | This file is a part of CiviCRM. |
11 | CiviCRM is free software; you can copy, modify, and distribute it |
12 | under the terms of the GNU Affero General Public License |
13 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
15 | CiviCRM is distributed in the hope that it will be useful, but |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. |
20 | You should have received a copy of the GNU Affero General Public |
21 | License and the CiviCRM Licensing Exception along |
22 | with this program; if not, contact CiviCRM LLC |
23 | at info[AT]civicrm[DOT]org. If you have questions about the |
24 | GNU Affero General Public License or the licensing of CiviCRM, |
25 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
26 +--------------------------------------------------------------------+
32 * @copyright CiviCRM LLC (c) 2004-2013
38 * This implements the profile page for all contacts. It uses a selector
39 * object to do the actual dispay. The fields displayd are controlled by
42 class CRM_Mailing_Page_Event
extends CRM_Core_Page
{
45 * all the fields that are listings related
53 * run this page (figure out the action needed and perform it).
58 $selector = &new CRM_Mailing_Selector_Event(
59 CRM_Utils_Request
::retrieve('event', 'String', $this),
60 CRM_Utils_Request
::retrieve('distinct', 'Boolean', $this),
61 CRM_Utils_Request
::retrieve('mid', 'Positive', $this),
62 CRM_Utils_Request
::retrieve('jid', 'Positive', $this),
63 CRM_Utils_Request
::retrieve('uid', 'Positive', $this)
66 $mailing_id = CRM_Utils_Request
::retrieve('mid', 'Positive', $this);
68 CRM_Utils_System
::setTitle($selector->getTitle());
69 $this->assign('title', $selector->getTitle());
70 $this->assign('mailing_id', $mailing_id);
73 if ($this->get(CRM_Utils_Sort
::SORT_ID
)) {
74 $sortID = CRM_Utils_Sort
::sortIDValue($this->get(CRM_Utils_Sort
::SORT_ID
),
75 $this->get(CRM_Utils_Sort
::SORT_DIRECTION
)
79 $controller = new CRM_Core_Selector_Controller(
81 $this->get(CRM_Utils_Pager
::PAGE_ID
),
83 CRM_Core_Action
::VIEW
,
85 CRM_Core_Selector_Controller
::TEMPLATE
88 $controller->setEmbedded(TRUE);