Cheetah
ChFdbSiteMaps.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbSiteMaps');
9 ch_import('ChWsbPrivacy');
10 
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`", // fields list
24  'field_date' => "date", // date field name
25  'field_date_type' => "timestamp", // date field type
26  'table' => "`ch_fdb_entries`", // table name
27  'join' => "", // join SQL part
28  'where' => "AND `status` = '" . CH_TD_STATUS_ACTIVE . "'", // SQL condition, without WHERE
29  'order' => " `date` ASC ", // SQL order, without ORDER BY
30  );
31 
32  $this->_oModule = ChWsbModule::getInstance('ChFdbModule');
33  }
34 
35  protected function _genUrl ($a)
36  {
37  return CH_WSB_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . 'view/' . $a['uri'];
38  }
39 }
ChWsbModule\getInstance
static getInstance($sClassName)
Definition: ChWsbModule.php:89
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
ChFdbSiteMaps\__construct
__construct($aSystem)
Definition: ChFdbSiteMaps.php:18
ChFdbSiteMaps\_genUrl
_genUrl($a)
Definition: ChFdbSiteMaps.php:35
ChWsbSiteMaps
Definition: ChWsbSiteMaps.php:32
ChFdbSiteMaps\$_oModule
$_oModule
Definition: ChFdbSiteMaps.php:16
CH_TD_STATUS_ACTIVE
const CH_TD_STATUS_ACTIVE
Definition: ChWsbTextData.php:12
ChFdbSiteMaps
Definition: ChFdbSiteMaps.php:15