Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
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 | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | */ |
17 | ||
18 | /** | |
19 | * Main page for viewing contact. | |
6a488035 TO |
20 | */ |
21 | class CRM_Contact_Page_View_Print extends CRM_Contact_Page_View_Summary { | |
22 | ||
23 | /** | |
95cdcc0f | 24 | * Heart of the viewing process. |
6a488035 | 25 | * |
95cdcc0f | 26 | * The runner gets all the meta data for the contact and calls the appropriate type of page to view. |
6a488035 | 27 | */ |
00be9182 | 28 | public function run() { |
6a488035 TO |
29 | $this->_print = CRM_Core_Smarty::PRINT_PAGE; |
30 | ||
31 | $this->preProcess(); | |
32 | ||
33 | $this->view(); | |
34 | ||
35 | return parent::run(); | |
36 | } | |
37 | ||
38 | /** | |
fe482240 | 39 | * View summary details of a contact. |
6a488035 | 40 | */ |
00be9182 | 41 | public function view() { |
be2fb01f CW |
42 | $params = []; |
43 | $defaults = []; | |
44 | $ids = []; | |
6a488035 TO |
45 | |
46 | $params['id'] = $params['contact_id'] = $this->_contactId; | |
47 | $contact = CRM_Contact_BAO_Contact::retrieve($params, $defaults, $ids); | |
48 | ||
49 | $this->assign('pageTitle', $contact->sort_name); | |
50 | ||
51 | return parent::view(); | |
52 | } | |
96025800 | 53 | |
6a488035 | 54 | } |