Public Member Functions | |
| KARMA ($itemid, $initpos=0, $initneg=0, $initread=0) | |
| getNbPosVotes () | |
| getNbNegVotes () | |
| getNbOfVotes () | |
| getTotalScore () | |
| setNbPosVotes ($val) | |
| setNbNegVotes ($val) | |
| votePositive () | |
| voteNegative () | |
| readFromDatabase () | |
| writeToDatabase () | |
| isVoteAllowed ($ip) | |
| saveIP () | |
Public Attributes | |
| $itemid | |
| $inforead | |
| $karmapos | |
| $karmaneg | |
http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Definition at line 20 of file KARMA.php.
| KARMA::KARMA | ( | $ | itemid, | |
| $ | initpos = 0, |
|||
| $ | initneg = 0, |
|||
| $ | initread = 0 | |||
| ) |
| KARMA::getNbPosVotes | ( | ) |
Definition at line 44 of file KARMA.php.
References readFromDatabase().
Referenced by votePositive().
| KARMA::getNbNegVotes | ( | ) |
Definition at line 48 of file KARMA.php.
References readFromDatabase().
Referenced by voteNegative().
| KARMA::getNbOfVotes | ( | ) |
| KARMA::getTotalScore | ( | ) |
| KARMA::setNbPosVotes | ( | $ | val | ) |
| KARMA::setNbNegVotes | ( | $ | val | ) |
| KARMA::votePositive | ( | ) |
Definition at line 70 of file KARMA.php.
References getNbPosVotes(), saveIP(), setNbPosVotes(), and writeToDatabase().
| KARMA::voteNegative | ( | ) |
Definition at line 78 of file KARMA.php.
References getNbNegVotes(), saveIP(), setNbNegVotes(), and writeToDatabase().
| KARMA::readFromDatabase | ( | ) |
Definition at line 88 of file KARMA.php.
References $query, mysql_fetch_object(), and sql_query().
Referenced by getNbNegVotes(), getNbOfVotes(), getNbPosVotes(), and getTotalScore().
| KARMA::writeToDatabase | ( | ) |
Definition at line 99 of file KARMA.php.
References $query, and sql_query().
Referenced by voteNegative(), and votePositive().
| KARMA::isVoteAllowed | ( | $ | ip | ) |
| KARMA::saveIP | ( | ) |
Definition at line 112 of file KARMA.php.
References $query, serverVar(), and sql_query().
Referenced by voteNegative(), and votePositive().
1.5.5