X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FPage%2FView.php;h=3e10088eaa59e0e5e27fc18ed894d572857a6e74;hb=6049c0d89e4b18c81cea8108acc71ba6bdc3ba85;hp=2ebe283cb0edbed40f8c6790b0369a6a334c6f9a;hpb=68acd6ae8e764d8e713829675cfadfdefff770e8;p=civicrm-core.git diff --git a/CRM/Contact/Page/View.php b/CRM/Contact/Page/View.php index 2ebe283cb0..3e10088eaa 100644 --- a/CRM/Contact/Page/View.php +++ b/CRM/Contact/Page/View.php @@ -1,7 +1,7 @@ _id = CRM_Utils_Request::retrieve('id', 'Positive', $this); $this->assign('id', $this->_id); @@ -109,7 +104,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page { } // ensure that the id does exist - if ( CRM_Core_DAO::getFieldValue( 'CRM_Contact_DAO_Contact', $this->_contactId, 'id' ) != $this->_contactId ) { + if (CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactId, 'id') != $this->_contactId) { CRM_Core_Error::statusBounce( ts('A Contact with that ID does not exist: %1', array(1 => $this->_contactId)), CRM_Utils_System::url('civicrm/dashboard', 'reset=1') @@ -157,7 +152,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page { $this->assign($navContacts); $path = CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $this->_contactId); - CRM_Utils_System::appendBreadCrumb(array(array('title' => ts('View Contact'), 'url' => $path,))); + CRM_Utils_System::appendBreadCrumb(array(array('title' => ts('View Contact'), 'url' => $path))); if ($image_URL = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactId, 'image_URL')) { //CRM-7265 --time being fix. @@ -232,7 +227,8 @@ class CRM_Contact_Page_View extends CRM_Core_Page { // Check if this is default domain contact CRM-10482 if (CRM_Contact_BAO_Contact::checkDomainContact($this->_contactId)) { $this->assign('domainContact', TRUE); - } else { + } + else { $this->assign('domainContact', FALSE); } @@ -259,12 +255,11 @@ class CRM_Contact_Page_View extends CRM_Core_Page { /** * Get meta details of the contact. * - * @param $contactId + * @param int $contactId * * @return array contact fields in fixed order - * @access public */ - static function getContactDetails($contactId) { + public static function getContactDetails($contactId) { return list($displayName, $contactImage, $contactType, @@ -278,9 +273,9 @@ class CRM_Contact_Page_View extends CRM_Core_Page { /** * @param $page - * @param null $contactID + * @param int $contactID */ - static function checkUserPermission($page, $contactID = NULL) { + public static function checkUserPermission($page, $contactID = NULL) { // check for permissions $page->_permission = NULL; @@ -316,12 +311,12 @@ class CRM_Contact_Page_View extends CRM_Core_Page { } /** - * @param $contactId + * @param int $contactId * @param bool $isDeleted * * @return string */ - static function setTitle($contactId, $isDeleted = FALSE) { + public static function setTitle($contactId, $isDeleted = FALSE) { static $contactDetails; $displayName = $contactImage = NULL; if (!isset($contactDetails[$contactId])) { @@ -351,10 +346,10 @@ class CRM_Contact_Page_View extends CRM_Core_Page { /** * Add urls for display in the actions menu * @param CRM_Core_Page $obj - * @param integer $cid + * @param int $cid */ - static function addUrls(&$obj, $cid) { - $uid = CRM_Core_BAO_UFMatch::getUFId($cid); + public static function addUrls(&$obj, $cid) { + $uid = CRM_Core_BAO_UFMatch::getUFId($cid); if ($uid) { $userRecordUrl = CRM_Core_Config::singleton()->userSystem->getUserRecordUrl($cid); @@ -387,4 +382,3 @@ class CRM_Contact_Page_View extends CRM_Core_Page { } } } -