<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* The id of the object being viewed (note/relationship etc)
*
* @int
- * @access protected
*/
protected $_id;
* The contact id of the contact being viewed
*
* @int
- * @access protected
*/
protected $_contactId;
* The action that we are performing
*
* @string
- * @access protected
*/
protected $_action;
* The permission we have on this contact
*
* @string
- * @access protected
*/
protected $_permission;
* the contact and calls the appropriate type of page to view.
*
* @return void
- * @access public
*
*/
- function preProcess() {
+ public function preProcess() {
// process url params
$this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
$this->assign('id', $this->_id);
* @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,
* @param $page
* @param int $contactID
*/
- static function checkUserPermission($page, $contactID = NULL) {
+ public static function checkUserPermission($page, $contactID = NULL) {
// check for permissions
$page->_permission = NULL;
*
* @return string
*/
- static function setTitle($contactId, $isDeleted = FALSE) {
+ public static function setTitle($contactId, $isDeleted = FALSE) {
static $contactDetails;
$displayName = $contactImage = NULL;
if (!isset($contactDetails[$contactId])) {
* @param CRM_Core_Page $obj
* @param integer $cid
*/
- static function addUrls(&$obj, $cid) {
+ public static function addUrls(&$obj, $cid) {
$uid = CRM_Core_BAO_UFMatch::getUFId($cid);
if ($uid) {
}
}
}
-