Cheetah
ChWsbSiteMapsPages.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbSiteMaps');
9 
14 {
15  protected $_bPermalinks = true;
16 
17  protected function __construct($aSystem)
18  {
19  parent::__construct($aSystem);
20 
21  $this->_aQueryParts = array (
22  'fields' => "`Name`, 0 AS `Date`", // fields list
23  'field_date' => "Date", // date field name
24  'field_date_type' => "timestamp", // date field type (or timestamp)
25  'table' => "`sys_page_compose_pages`", // table name
26  'join' => "", // join SQL part
27  'where' => "AND `System` = 0", // SQL condition, without WHERE
28  'order' => " `Order` ASC ", // SQL order, without ORDER BY
29  );
30  }
31 
32  protected function _genUrl ($a)
33  {
34  return CH_WSB_URL_ROOT . ($this->_bPermalinks ? 'page/' : 'viewPage.php?ID=') . rawurlencode($a['Name']);
35  }
36 }
ChWsbSiteMapsPages\__construct
__construct($aSystem)
Definition: ChWsbSiteMapsPages.php:17
ChWsbSiteMapsPages\_genUrl
_genUrl($a)
Definition: ChWsbSiteMapsPages.php:32
ChWsbSiteMapsPages\$_bPermalinks
$_bPermalinks
Definition: ChWsbSiteMapsPages.php:15
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
ChWsbSiteMaps
Definition: ChWsbSiteMaps.php:32
ChWsbSiteMapsPages
Definition: ChWsbSiteMapsPages.php:14