Cheetah
|
Public Member Functions | |
__construct (&$oConfig) | |
getAllPolls ($sLimit, $iMemberID=0, $bAllPolls=false, $iApproval=1, $sExtraSql=null, $sOrder='`poll_date` DESC') | |
getFeaturedCount ($iStatus=1, $bOnlyPublic=false) | |
getAllFeaturedPolls ($sLimit, $iStatus=1, $bOnlyPublic=false) | |
getPollsCount ($iMemberID=0, $bAllPools=false, $iApproval=1, $sExtraSql=null) | |
getUnApprovedPolls ($iProfileId) | |
getPollInfo ($iPollId) | |
setVotes ( $iPollId, $sVotes, $iVotesCount) | |
setOption ($iPollId, $sAction='approval') | |
createPoll ($aPoolInfo, $isAdmin=false) | |
editPoll ($aPoolInfo) | |
deletePoll ($iPollId) | |
clearAttachetData ($iPollId) | |
getPollsByMonth ($iYear, $iMonth, $iNextYear, $iNextMonth) | |
getSettingsCategory ($sCatName) | |
![]() | |
__construct ($oConfig=null) | |
getPrefix () | |
getModulesBy ($aParams=array()) | |
getModuleById ($iId) | |
getModuleByUri ($sUri) | |
isModule ($sUri) | |
isModuleParamsUsed ($sUri, $sPath, $sPrefixDb, $sPrefixClass) | |
getModules () | |
getDependent ($sUri) | |
getSettingsCategoryId ($sCatName) | |
![]() | |
setTimezone ($sTimezone) | |
getLink () | |
res ($sQuery, $aBindings=[], $bReplaying=false) | |
getAll ($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC) | |
getRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC) | |
getColumn ($sQuery, $aBindings=[]) | |
getOne ($sQuery, $aBindings=[], $iIndex=0) | |
getFirstRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC) | |
getNextRow () | |
getAllWithKey ($sQuery, $sFieldKey, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC) | |
getPairs ($sQuery, $sFieldKey, $sFieldValue, $aBindings=[]) | |
query ($sQuery, $aBindings=[]) | |
getNumRows ($oStmt=null) | |
getAffectedRows ($oStmt=null) | |
fillArray ($oStmt, $iFetchType=PDO::FETCH_ASSOC) | |
lastId () | |
getParam ($sName, $bCache=true) | |
setParam ($sName, $sValue) | |
listTables () | |
getFields ($sTable) | |
isFieldExists ($sTable, $sFieldName) | |
fetchField ($mixedQuery, $iField, $aBindings=[]) | |
getDbCacheObject () | |
genDbCacheKey ($sName) | |
fromCache ($sName, $sFunc) | |
cleanCache ($sName) | |
& | fromMemory ($sName, $sFunc) |
cleanMemory ($sName) | |
arrayToSQL ($a, $sDiv=',') | |
escape ($sText, $bReal=true) | |
implode_escape ($mixed) | |
unescape ($mixed) | |
Public Attributes | |
$_oConfig | |
$_sTable | |
$sTablePrefix | |
![]() | |
$_sPrefix | |
![]() | |
$port | |
$socket | |
$dbname | |
$user | |
$password | |
$oParams = null | |
$oDbCacheObject = null | |
Additional Inherited Members | |
![]() | |
static | getInstance () |
![]() | |
__construct () | |
connect () | |
disconnect () | |
![]() | |
$host | |
$link | |
$oCurrentStmt | |
$iCurrentFetchStyle | |
![]() | |
static | $instance |
This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/
Definition at line 10 of file ChPollDb.php.
ChPollDb::__construct | ( | & | $oConfig | ) |
Definition at line 19 of file ChPollDb.php.
ChPollDb::clearAttachetData | ( | $iPollId | ) |
Function will delete all poll's attachet data; from cmts, votings....
@iPollId (integer) - poll's id;
Definition at line 411 of file ChPollDb.php.
ChPollDb::createPoll | ( | $aPoolInfo, | |
$isAdmin = false |
|||
) |
Function will create new poll ;
: | $aPoolInfo | (array) - contain some poll's information; [ owner_id ] - (integer) poll's owner Id ; [ question ] - (string) poll's question ; [ answers ] - (string) poll's answers (string separated by tag CH_POLL_ANS_DIVIDER); [ results ] - (string) poll's results (string separated by ';'); [ tags ] - (string) poll's tags (string separated by 'space'); $isAdmin : (boolean) - is isset this value that is admin mode; |
Definition at line 274 of file ChPollDb.php.
ChPollDb::deletePoll | ( | $iPollId | ) |
Function will delete poll ;
: | $iPollId | (integer) - poll's Id; |
Definition at line 397 of file ChPollDb.php.
ChPollDb::editPoll | ( | $aPoolInfo | ) |
Function will edit poll ;
: | $aPoolInfo | (array) - contain some poll's information; [ question ] - (string) poll's question ; [ answers ] - (string) poll's answers (string separated by tag CH_POLL_ANS_DIVIDER); [ status ] - (string) poll's status as active or not; [ approve ] - (boolean) poll's approve or not; [ Id ] - (integer) poll's Id; [ tags ] - (string) poll's tags (string separated by 'space'); |
Definition at line 345 of file ChPollDb.php.
ChPollDb::getAllFeaturedPolls | ( | $sLimit, | |
$iStatus = 1 , |
|||
$bOnlyPublic = false |
|||
) |
Function will generate all featured polls;
: | $bOnlyPublic | (boolean) - if isset this param than will return only public polls; |
: | $sLimit | (string) - sql query (limit of returning rows) |
Definition at line 113 of file ChPollDb.php.
ChPollDb::getAllPolls | ( | $sLimit, | |
$iMemberID = 0 , |
|||
$bAllPolls = false , |
|||
$iApproval = 1 , |
|||
$sExtraSql = null , |
|||
$sOrder = '`poll_date` DESC' |
|||
) |
Function will return all active pools ;
: | $sLimit | (string) - contain part of SQL query; |
: | $iMemberID | (integer) - logged member's Id ; |
: | $bAllPolls | (boolean) - return all polls aprroved and not ; |
Definition at line 41 of file ChPollDb.php.
ChPollDb::getFeaturedCount | ( | $iStatus = 1 , |
|
$bOnlyPublic = false |
|||
) |
Function will get number of featured polls
: | $iStatus | (integer) - poll's featured status; |
: | $bOnlyPublic | (boolean) - if isset this param than will return only public polls; |
Definition at line 97 of file ChPollDb.php.
ChPollDb::getPollInfo | ( | $iPollId | ) |
Function will return array with all poll's questions ;
: | $iPollId | (integer) - poll's Id ; |
Definition at line 203 of file ChPollDb.php.
ChPollDb::getPollsByMonth | ( | $iYear, | |
$iMonth, | |||
$iNextYear, | |||
$iNextMonth | |||
) |
Function will find all polls by month;
: | $iYear | (integer) - needed year; |
: | $iMonth | (integer) - needed month; |
: | $iNextYear | (integer) - next year; |
: | $iNextMonth | (integer) - next month; |
Definition at line 460 of file ChPollDb.php.
Function will return the number of active pools;
: | $iMemberID | (integer) - logged member's Id ; |
: | $bAllPools | (boolean) - if isset this param that will find all member's poll's (approved and not) ; |
Definition at line 132 of file ChPollDb.php.
ChPollDb::getSettingsCategory | ( | $sCatName | ) |
Function will return global category number;
Definition at line 477 of file ChPollDb.php.
ChPollDb::getUnApprovedPolls | ( | $iProfileId | ) |
Function will get count of unapproved polls;
: | $iProfileId | (integer) - profile's Id; |
Definition at line 185 of file ChPollDb.php.
ChPollDb::setOption | ( | $iPollId, | |
$sAction = 'approval' |
|||
) |
Function will set poll's status , featured;
: | $iPollId | (integer) - poll's Id ; |
Definition at line 245 of file ChPollDb.php.
ChPollDb::setVotes | ( | $iPollId, | |
$sVotes, | |||
$iVotesCount | |||
) |
Function will set the number of votes ;
: | $iPollId | (integer) - poll's Id; |
: | $sVotes | (string) - votes string; |
: | $iVotesCount | (integer) - number of all votes; |
Definition at line 219 of file ChPollDb.php.
ChPollDb::$_oConfig |
Definition at line 12 of file ChPollDb.php.
ChPollDb::$_sTable |
Definition at line 13 of file ChPollDb.php.
ChPollDb::$sTablePrefix |
Definition at line 14 of file ChPollDb.php.