Cheetah
ChWsbCmtsProfile.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChTemplCmtsView');
9 
11 {
15  function __construct($sSystem, $iId, $iInit = 1)
16  {
17  parent::__construct($sSystem, $iId, $iInit);
18  }
19 
20  function getBaseUrl()
21  {
22  $aEntry = getProfileInfo($this->getId());
23  if(empty($aEntry) || !is_array($aEntry))
24  return '';
25 
26  return getProfileLink($aEntry['ID']);
27  }
28 
29  function isRemoveAllowedAll()
30  {
31  if($this->_iId == $this->_getAuthorId() && getParam('enable_cmts_profile_delete') == 'on')
32  return true;
33 
34  return parent::isRemoveAllowedAll();
35  }
36 }
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
$iId
$iId
Definition: license.php:15
ChWsbCmts\getId
getId()
Definition: ChWsbCmts.php:228
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
ChWsbCmtsProfile\__construct
__construct($sSystem, $iId, $iInit=1)
Definition: ChWsbCmtsProfile.php:15
ChTemplCmtsView
Definition: ChTemplCmtsView.php:14
ChWsbCmtsProfile\getBaseUrl
getBaseUrl()
Definition: ChWsbCmtsProfile.php:20
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
ChWsbCmts\_getAuthorId
_getAuthorId()
Definition: ChWsbCmts.php:632
ChWsbCmtsProfile\isRemoveAllowedAll
isRemoveAllowedAll()
Definition: ChWsbCmtsProfile.php:29
getProfileInfo
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
Definition: profiles.inc.php:249
ChWsbCmtsProfile
Definition: ChWsbCmtsProfile.php:11
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7