Cheetah
ChNewsConfig.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbTextConfig');
9 
11 {
13  {
14  parent::__construct($aModule);
15  }
16  function init(&$oDb)
17  {
18  parent::init($oDb);
19 
20  $sUri = $this->getUri();
21  $sName = 'ch_' . $sUri;
22 
23  $this->_bAutoapprove = $this->_oDb->getParam('news_autoapprove') == 'on';
24  $this->_bComments = $this->_oDb->getParam('news_comments') == 'on';
25  $this->_sCommentsSystemName = $sName;
26  $this->_bVotes = $this->_oDb->getParam('news_votes') == 'on';
27  $this->_sVotesSystemName = $sName;
28  $this->_sViewsSystemName = $sName;
29  $this->_sSubscriptionsSystemName = $sName;
30  $this->_sActionsViewSystemName = $sName;
31  $this->_sCategoriesSystemName = $sName;
32  $this->_sTagsSystemName = $sName;
33  $this->_sAlertsSystemName = $sName;
34  $this->_sSearchSystemName = $sName;
36  $this->_sAnimationEffect = 'fade';
37  $this->_iAnimationSpeed = 'slow';
38  $this->_iIndexNumber = (int)$this->_oDb->getParam('news_index_number');
39  $this->_iMemberNumber = (int)$this->_oDb->getParam('news_member_number');
40  $this->_iSnippetLength = 1000;
41  $this->_iPerPage = (int)$this->_oDb->getParam('news_per_page');
42  $this->_sSystemPrefix = 'news';
43  $this->_aJsClasses = array('main' => 'ChNewsMain');
44  $this->_aJsObjects = array('main' => 'oNewsMain');
45  $this->_iRssLength = (int)$this->_oDb->getParam('news_rss_length');
46  }
47 }
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
$oDb
global $oDb
Definition: db.inc.php:39
ChNewsConfig\init
init(&$oDb)
Definition: ChNewsConfig.php:16
CH_WSB_LOCALE_DATE_SHORT
const CH_WSB_LOCALE_DATE_SHORT
Definition: utils.inc.php:15
ChNewsConfig
Definition: ChNewsConfig.php:11
ChNewsConfig\__construct
__construct($aModule)
Definition: ChNewsConfig.php:12
CH_WSB_LOCALE_DB
const CH_WSB_LOCALE_DB
Definition: utils.inc.php:19
getLocaleFormat
getLocaleFormat($iCode=CH_WSB_LOCALE_DATE_SHORT, $iType=CH_WSB_LOCALE_PHP)
Definition: utils.inc.php:89
ChWsbTextConfig
Definition: ChWsbTextConfig.php:11
ChWsbConfig\getUri
getUri()
Definition: ChWsbConfig.php:104
$sName
$sName
Definition: ChWsbAdminTools.php:853