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 * Page to display contact name on top of the summary.
21 class CRM_Contact_Page_Inline_ContactName
extends CRM_Core_Page
{
26 * This method is called after the page is created.
28 public function run() {
29 // get the emails for this contact
30 $contactId = CRM_Utils_Request
::retrieve('cid', 'Positive', CRM_Core_DAO
::$_nullObject, TRUE);
32 $isDeleted = (bool) CRM_Core_DAO
::getFieldValue('CRM_Contact_DAO_Contact', $contactId, 'is_deleted');
34 $this->assign('contactId', $contactId);
36 $title = CRM_Contact_Page_View
::setTitle($contactId, $isDeleted);
37 $this->assign('title', $title);
39 // Check if this is default domain contact CRM-10482
40 $this->assign('domainContact', CRM_Contact_BAO_Contact
::checkDomainContact($contactId));
42 // check logged in user permission
43 CRM_Contact_Page_View
::checkUserPermission($this, $contactId);
45 // finally call parent