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 handle mailing and contact related functions
21 class CRM_Mailing_Page_Tab
extends CRM_Contact_Page_View
{
23 * The action links that we need to display for the browse screen.
27 public static $_links = NULL;
28 public $_permission = NULL;
29 public $_contactId = NULL;
32 * Called when action is browse.
34 public function browse() {
38 * Build all the data structures needed to build the form.
40 public function preProcess() {
41 $this->_action
= CRM_Utils_Request
::retrieve('action', 'String', $this, FALSE, 'browse');
42 $this->_id
= CRM_Utils_Request
::retrieve('id', 'Positive', $this);
44 $this->_contactId
= CRM_Utils_Request
::retrieve('cid', 'Positive', $this, TRUE);
45 $displayName = CRM_Contact_BAO_Contact
::displayName($this->_contactId
);
47 $this->assign('contactId', $this->_contactId
);
48 $this->assign('displayName', $displayName);
50 // Check logged in url permission.
51 CRM_Contact_Page_View
::checkUserPermission($this);
53 CRM_Utils_System
::setTitle(ts('Mailings sent to %1', [1 => $displayName]));
57 * The main function that is called when the page loads.
59 * It decides the which action has to be taken for the page.
61 public function run() {