Cheetah
modules
cheetah
events
classes
ChEventsVoting.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChTemplVotingView'
);
9
10
class
ChEventsVoting
extends
ChTemplVotingView
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'
] .
'/ChEventsSearchResult.php'
);
24
return
(
new
ChEventsSearchResult
())->getMain();
25
}
26
27
function
checkAction
($bPerformAction =
false
)
28
{
29
if
(!
parent::checkAction
($bPerformAction))
30
return
false
;
31
32
$oMain = $this->
getMain
();
33
$aEvent = $oMain->_oDb->getEntryByIdAndOwner($this->
getId
(), 0,
true
);
34
return
$oMain->isAllowedRate($aEvent);
35
}
36
}
ChEventsVoting\getMain
getMain()
Definition:
ChEventsVoting.php:20
ChEventsVoting
Definition:
ChEventsVoting.php:11
$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
ChWsbVoting\getId
getId()
Definition:
ChWsbVoting.php:257
ChEventsVoting\checkAction
checkAction($bPerformAction=false)
Definition:
ChEventsVoting.php:27
ChEventsSearchResult
Definition:
ChEventsSearchResult.php:11
checkAction
checkAction($iMemberId, $actionID, $performAction=false, $iForcedProfID=0, $isCheckMemberStatus=true)
Definition:
membership_levels.inc.php:313
ChEventsVoting\__construct
__construct($sSystem, $iId)
Definition:
ChEventsVoting.php:15
ChTemplVotingView
Definition:
ChTemplVotingView.php:14
Generated by
1.8.20