Cheetah
ChStoreVoting.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChTemplVotingView');
9 
11 {
15  function __construct($sSystem, $iId)
16  {
17  parent::__construct($sSystem, $iId);
18  }
19 
20  function getMain()
21  {
22  $aPathInfo = pathinfo(__FILE__);
23  require_once ($aPathInfo['dirname'] . '/ChStoreSearchResult.php');
24  return (new ChStoreSearchResult())->getMain();
25  }
26 
27  function checkAction ($bPerformAction = false)
28  {
29  if (!parent::checkAction($bPerformAction))
30  return false;
31 
32  $oMain = $this->getMain();
33  $aDataEntry = $oMain->_oDb->getEntryById($this->getId ());
34  return $oMain->isAllowedRate($aDataEntry);
35  }
36 }
ChStoreVoting\getMain
getMain()
Definition: ChStoreVoting.php:20
$aPathInfo
$aPathInfo
Definition: cmd.php:12
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
$iId
$iId
Definition: license.php:15
ChStoreSearchResult
Definition: ChStoreSearchResult.php:11
ChWsbVoting\getId
getId()
Definition: ChWsbVoting.php:257
ChStoreVoting\__construct
__construct($sSystem, $iId)
Definition: ChStoreVoting.php:15
checkAction
checkAction($iMemberId, $actionID, $performAction=false, $iForcedProfID=0, $isCheckMemberStatus=true)
Definition: membership_levels.inc.php:313
ChStoreVoting\checkAction
checkAction($bPerformAction=false)
Definition: ChStoreVoting.php:27
ChStoreVoting
Definition: ChStoreVoting.php:11
ChTemplVotingView
Definition: ChTemplVotingView.php:14