Cheetah
modules
cheetah
files
classes
ChFilesSiteMapsFolders.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbSiteMaps'
);
9
ch_import
(
'ChWsbPrivacy'
);
10
14
class
ChFilesSiteMapsFolders
extends
ChWsbSiteMaps
15
{
16
protected
$_oModule
;
17
18
protected
function
__construct
($aSystem)
19
{
20
parent::__construct($aSystem);
21
22
$this->_aQueryParts = array (
23
'fields'
=>
"`ID`, `Uri`, `Date`, `Owner`"
,
// fields list
24
'field_date'
=>
"Date"
,
// date field name
25
'field_date_type'
=>
"timestamp"
,
// date field type
26
'table'
=>
"`sys_albums`"
,
// table name
27
'join'
=>
""
,
// join SQL part
28
'where'
=>
"AND `Type` = 'ch_files' AND `Status` = 'active' AND `ObjCount` > 0 AND `AllowAlbumView` = '"
.
CH_WSB_PG_ALL
.
"'"
,
// SQL condition, without WHERE
29
'order'
=>
" `Date` ASC "
,
// SQL order, without ORDER BY
30
);
31
32
$this->_oModule =
ChWsbModule::getInstance
(
'ChFilesModule'
);
33
}
34
35
protected
function
_genUrl
($a)
36
{
37
return
CH_WSB_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() .
'browse/album/'
. $a[
'Uri'
] .
'/owner/'
. rawurlencode(
getUsername
($a[
'Owner'
]));
38
}
39
}
ChFilesSiteMapsFolders\__construct
__construct($aSystem)
Definition:
ChFilesSiteMapsFolders.php:18
ChWsbModule\getInstance
static getInstance($sClassName)
Definition:
ChWsbModule.php:89
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
php
getUsername
getUsername( $ID='')
Definition:
profiles.inc.php:443
ChFilesSiteMapsFolders\$_oModule
$_oModule
Definition:
ChFilesSiteMapsFolders.php:16
ChWsbSiteMaps
Definition:
ChWsbSiteMaps.php:32
CH_WSB_PG_ALL
const CH_WSB_PG_ALL
Definition:
ChWsbPrivacy.php:12
ChFilesSiteMapsFolders
Definition:
ChFilesSiteMapsFolders.php:15
ChFilesSiteMapsFolders\_genUrl
_genUrl($a)
Definition:
ChFilesSiteMapsFolders.php:35
Generated by
1.8.20