Cheetah
ChPollConfig.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_CLASSES . 'ChWsbConfig.php');
9 
11 {
13 
15 
16  // contain number of allowed member's pools;
18 
19  // allow or disallow the auto activation for polls;
21 
22  // contain number of visible profile polls on profile page ;
24 
25  // contain number of visible profile polls on index page ;
27 
28  // contain Db table's name ;
30 
31  // contain Db table's name ;
33 
38  {
39  parent::__construct($aModule);
40 
41  // get allowed members polls;
42  $this -> iAlowMembersPolls = getParam( 'enable_poll' );
43 
44  // get allowed number of polls;
45  $this -> iAlowPollNumber = getParam( 'profile_poll_num' );
46 
47  // chew poll's auto activation;
48  $this -> iAutoActivate = getParam( 'profile_poll_act' ) == 'on' ? 1 : 0;
49 
50  $this -> iProfilePagePollsCount = getParam( 'profile_page_polls' );
51  $this -> iIndexPagePollsCount = getParam( 'index_page_polls' );
52 
53  // define the table name ;
54  $this -> sTableName = $this -> getDbPrefix() . 'data';
55 
56  // define the prefix ;
57  $this -> sTablePrefix = $this -> getDbPrefix();
58  }
59 }
$aModule
$aModule
Definition: classifieds.php:21
ChPollConfig\$iProfilePagePollsCount
$iProfilePagePollsCount
Definition: ChPollConfig.php:23
php
ChPollConfig\$iAlowMembersPolls
$iAlowMembersPolls
Definition: ChPollConfig.php:14
ChWsbConfig\getDbPrefix
getDbPrefix()
Definition: ChWsbConfig.php:87
ChPollConfig\__construct
__construct($aModule)
Definition: ChPollConfig.php:37
ChPollConfig\$sTablePrefix
$sTablePrefix
Definition: ChPollConfig.php:32
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
ChPollConfig
Definition: ChPollConfig.php:11
ChWsbConfig
Definition: ChWsbConfig.php:38
ChPollConfig\$sUploadPath
$sUploadPath
Definition: ChPollConfig.php:12
ChPollConfig\$sTableName
$sTableName
Definition: ChPollConfig.php:29
ChPollConfig\$iAlowPollNumber
$iAlowPollNumber
Definition: ChPollConfig.php:17
ChPollConfig\$iIndexPagePollsCount
$iIndexPagePollsCount
Definition: ChPollConfig.php:26
ChPollConfig\$iAutoActivate
$iAutoActivate
Definition: ChPollConfig.php:20