Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
cheetah
news
classes
ChNewsData.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbTextData'
);
9
10
class
ChNewsData
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
}
ChNewsData\__construct
__construct(&$oModule)
Definition:
ChNewsData.php:12
$oModule
if(! @isAdmin()) $oModule
Definition:
admin.php:25
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
php
ChNewsData
Definition:
ChNewsData.php:11
ChWsbTextData
Definition:
ChWsbTextData.php:23
Generated by
1.8.20