Cheetah
inc
classes
ChWsbTextSiteMaps.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbSiteMaps'
);
9
ch_import
(
'ChWsbPrivacy'
);
10
14
class
ChWsbTextSiteMaps
extends
ChWsbSiteMaps
15
{
16
protected
$_oModule
;
17
18
protected
function
__construct
($aSystem, &
$oModule
)
19
{
20
parent::__construct($aSystem);
21
22
$this->_oModule =
$oModule
;
23
$this->_aQueryParts = array (
24
'fields'
=>
"`id`, `uri`, `when`"
,
// fields list
25
'field_date'
=>
"when"
,
// date field name
26
'field_date_type'
=>
"timestamp"
,
// date field type
27
'table'
=>
"`"
. $this->_oModule->_oConfig->getDbPrefix() .
"entries`"
,
// table name
28
'join'
=>
""
,
// join SQL part
29
'where'
=>
"AND `status` = '"
.
CH_TD_STATUS_ACTIVE
.
"'"
,
// SQL condition, without WHERE
30
'order'
=>
" `when` ASC "
,
// SQL order, without ORDER BY
31
);
32
}
33
34
protected
function
_genUrl
($a)
35
{
36
return
CH_WSB_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() .
'view/'
. $a[
'uri'
];
37
}
38
}
$oModule
if(! @isAdmin()) $oModule
Definition:
admin.php:25
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
ChWsbTextSiteMaps\_genUrl
_genUrl($a)
Definition:
ChWsbTextSiteMaps.php:34
php
ChWsbSiteMaps
Definition:
ChWsbSiteMaps.php:32
CH_TD_STATUS_ACTIVE
const CH_TD_STATUS_ACTIVE
Definition:
ChWsbTextData.php:12
ChWsbTextSiteMaps\$_oModule
$_oModule
Definition:
ChWsbTextSiteMaps.php:16
ChWsbTextSiteMaps\__construct
__construct($aSystem, &$oModule)
Definition:
ChWsbTextSiteMaps.php:18
ChWsbTextSiteMaps
Definition:
ChWsbTextSiteMaps.php:15
Generated by
1.8.20