Cheetah
inc
classes
ChWsbTextCmts.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbModule'
);
9
ch_import
(
'ChTemplCmtsView'
);
10
11
class
ChWsbTextCmts
extends
ChTemplCmtsView
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->getEntries(array(
'sample_type'
=>
'id'
,
'id'
=> $this->
getId
()));
25
if
(
empty
($aEntry) || !is_array($aEntry))
26
return
''
;
27
28
return
CH_WSB_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() .
'view/'
. $aEntry[
'uri'
];
29
}
30
34
function
getCommentsShort
(
$sType
)
35
{
36
return
array(
37
'cmt_actions'
=> $this->
getActions
(0,
$sType
),
38
'cmt_object'
=> $this->
getId
(),
39
'cmt_addon'
=> $this->
getCmtsInit
()
40
);
41
}
42
}
ChBaseCmtsView\getActions
getActions($iCmtId, $sType='reply')
Definition:
ChBaseCmtsView.php:173
ChWsbTextCmts\$_oModule
$_oModule
Definition:
ChWsbTextCmts.php:13
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
ChWsbTextCmts\getCommentsShort
getCommentsShort($sType)
Definition:
ChWsbTextCmts.php:34
ChWsbTextCmts\__construct
__construct($sSystem, $iId, $iInit=1)
Definition:
ChWsbTextCmts.php:15
$sType
$sType
Definition:
actions.inc.php:11
ChTemplCmtsView
Definition:
ChTemplCmtsView.php:14
ChWsbTextCmts\getBaseUrl
getBaseUrl()
Definition:
ChWsbTextCmts.php:22
ChWsbTextCmts
Definition:
ChWsbTextCmts.php:12
ChBaseCmtsView\getCmtsInit
getCmtsInit()
Definition:
ChBaseCmtsView.php:224
empty
Attr AllowedRel this is empty
Definition:
Attr.AllowedRel.txt:7
Generated by
1.8.20