Public Member Functions | |
getLoginUrl () | |
init () | |
getUserId () | |
isUserVoted ($questionId, $userId=null) | |
setUserVoted ($questionId, $userId=null) | |
setUserUnvoted ($questionId, $userId=null) | |
isAdmin () | |
getAssetsUrl () |
Static Public Member Functions | |
static | t ($str= '', $params=array(), $dic= 'core') |
Public Attributes | |
$debug = false | |
$_assetsUrl |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
VoteModule This module represent voting system which manage by questions and answers and return statistics of answers
Definition at line 16 of file VoteModule.php.
VoteModule::getAssetsUrl | ( | ) |
Publish module assets and return url
Definition at line 106 of file VoteModule.php.
VoteModule::getUserId | ( | ) |
Get current user id
Definition at line 52 of file VoteModule.php.
Referenced by isUserVoted(), setUserUnvoted(), and setUserVoted().
VoteModule::isUserVoted | ( | $questionId, | |
$userId = null |
|||
) |
Checks if user already answered for question
Definition at line 62 of file VoteModule.php.
References getUserId().
VoteModule::setUserUnvoted | ( | $questionId, | |
$userId = null |
|||
) |
Unset status of question as answered
Definition at line 88 of file VoteModule.php.
References getUserId().
VoteModule::setUserVoted | ( | $questionId, | |
$userId = null |
|||
) |
Set status of question as answered
Definition at line 75 of file VoteModule.php.
References getUserId().
|
static |
Translates a message to the specified language.
string | $str | message |
array | $params | params |
string | $dic | dictionary |
Definition at line 42 of file VoteModule.php.