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 * Main page for viewing contact.
21 class CRM_Contact_Page_View_Print
extends CRM_Contact_Page_View_Summary
{
24 * Heart of the viewing process.
26 * The runner gets all the meta data for the contact and calls the appropriate type of page to view.
28 public function run() {
29 $this->_print
= CRM_Core_Smarty
::PRINT_PAGE
;
39 * View summary details of a contact.
41 public function view() {
46 $params['id'] = $params['contact_id'] = $this->_contactId
;
47 $contact = CRM_Contact_BAO_Contact
::retrieve($params, $defaults, $ids);
49 $this->assign('pageTitle', $contact->sort_name
);
51 return parent
::view();