_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); $displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId); $this->assign('contactId', $this->_contactId); $this->assign('displayName', $displayName); // Check logged in url permission. CRM_Contact_Page_View::checkUserPermission($this); CRM_Utils_System::setTitle(ts('Mailings sent to %1', [1 => $displayName])); } /** * The main function that is called when the page loads. * * It decides the which action has to be taken for the page. */ public function run() { $this->preProcess(); $this->browse(); parent::run(); } }