Cheetah
ChWsbFilesCmts.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbModule');
9 ch_import('ChTemplCmtsView');
10 
12 {
13  var $_oModule;
14 
15  function __construct($sSystem, $iId, $iInit = 1)
16  {
17  parent::__construct($sSystem, $iId, $iInit);
18 
19  $this->_oModule = null;
20  }
21 
22  function getBaseUrl()
23  {
24  $aEntry = $this->_oModule->_oDb->getFileInfo(array('fileId' => $this->getId()), true);
25  if(empty($aEntry) || !is_array($aEntry))
26  return '';
27 
28  return CH_WSB_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . 'view/' . $aEntry['medUri'];
29  }
30 }
ChWsbFilesCmts\getBaseUrl
getBaseUrl()
Definition: ChWsbFilesCmts.php:22
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbFilesCmts\$_oModule
$_oModule
Definition: ChWsbFilesCmts.php:13
php
$iId
$iId
Definition: license.php:15
ChWsbCmts\getId
getId()
Definition: ChWsbCmts.php:228
ChWsbFilesCmts\__construct
__construct($sSystem, $iId, $iInit=1)
Definition: ChWsbFilesCmts.php:15
ChTemplCmtsView
Definition: ChTemplCmtsView.php:14
ChWsbFilesCmts
Definition: ChWsbFilesCmts.php:12
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7