Cheetah
ChFdbConfig.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('feedback_autoapprove') == 'on';
24  $this->_bComments = $this->_oDb->getParam('feedback_comments') == 'on';
25  $this->_sCommentsSystemName = $sName;
26  $this->_bVotes = $this->_oDb->getParam('feedback_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('feedback_index_number');
39  $this->_iSnippetLength = (int)$this->_oDb->getParam('feedback_snippet_length');
40  $this->_iPerPage = (int)$this->_oDb->getParam('feedback_per_page');
41  $this->_sSystemPrefix = 'feedback';
42  $this->_aJsClasses = array('main' => 'ChFeedbackMain');
43  $this->_aJsObjects = array('main' => 'oFeedbackMain');
44  $this->_iRssLength = (int)$this->_oDb->getParam('feedback_rss_length');
45  }
46 }
ChFdbConfig\__construct
__construct($aModule)
Definition: ChFdbConfig.php:12
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
ChFdbConfig\init
init(&$oDb)
Definition: ChFdbConfig.php:16
$oDb
global $oDb
Definition: db.inc.php:39
CH_WSB_LOCALE_DATE_SHORT
const CH_WSB_LOCALE_DATE_SHORT
Definition: utils.inc.php:15
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
ChFdbConfig
Definition: ChFdbConfig.php:11
ChWsbTextConfig
Definition: ChWsbTextConfig.php:11
ChWsbConfig\getUri
getUri()
Definition: ChWsbConfig.php:104
$sName
$sName
Definition: ChWsbAdminTools.php:853