Cheetah
modules
cheetah
articles
classes
ChArlData.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbTextData'
);
9
10
class
ChArlData
extends
ChWsbTextData
11
{
12
function
__construct
(&
$oModule
)
13
{
14
parent::__construct(
$oModule
);
15
16
$this->_aForm[
'params'
][
'db'
][
'table'
] = $this->_oModule->_oDb->getPrefix() .
'entries'
;
17
$this->_aForm[
'form_attrs'
][
'action'
] = CH_WSB_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() .
'admin/'
;
18
$this->_aForm[
'inputs'
][
'author_id'
][
'value'
] = 0;
19
$this->_aForm[
'inputs'
][
'snippet'
][
'checker'
][
'params'
][1] = $this->_oModule->_oConfig->getSnippetLength();
20
$this->_aForm[
'inputs'
][
'allow_comment_to'
] = array(
21
'type'
=>
'hidden'
,
22
'name'
=>
'comment'
,
23
'value'
=> 0,
24
'db'
=> array (
25
'pass'
=>
'Int'
,
26
),
27
);
28
$this->_aForm[
'inputs'
][
'allow_vote_to'
] = array(
29
'type'
=>
'hidden'
,
30
'name'
=>
'vote'
,
31
'value'
=> 0,
32
'db'
=> array (
33
'pass'
=>
'Int'
,
34
),
35
);
36
}
37
}
$oModule
if(! @isAdmin()) $oModule
Definition:
admin.php:25
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
php
ChArlData
Definition:
ChArlData.php:11
ChArlData\__construct
__construct(&$oModule)
Definition:
ChArlData.php:12
ChWsbTextData
Definition:
ChWsbTextData.php:23
Generated by
1.8.20