|
ultimix
|
Public Member Functions | |
| __construct () | |
| increase_rating ($MasterId, $MasterType, $Value) | |
| get_rating_object ($MasterId=false, $MasterType= 'user') | |
| get_rating ($MasterId=false, $MasterType= 'user') | |
| set_rating ($Value, $MasterId=false, $MasterType= 'user') | |
| change_rating ($Delta, $MasterId=false, $MasterType= 'user') | |
Data Fields | |
| $Database = false | |
| $DatabaseAlgorithms = false | |
| $LinkUtilities = false | |
| $RatingAccess = false | |
Class provides data access routine.
Definition at line 26 of file rating_algorithms.php.
| __construct | ( | ) |
Constructor.
Definition at line 53 of file rating_algorithms.php.
| change_rating | ( | $Delta, | |
$MasterId = false, |
|||
$MasterType = 'user' |
|||
| ) |
Function changes rating.
| $Delta | - Rating value delta. |
| $MasterId | - Master object's id. |
| $MasterType | - Master object's type. |
| Exception | An exception of this type is thrown. |
Definition at line 269 of file rating_algorithms.php.
| get_rating | ( | $MasterId = false, |
|
$MasterType = 'user' |
|||
| ) |
Function fetches object's rating.
| $MasterId | - Master object's id. |
| $MasterType | - Master object's type. |
| Exception | An exception of this type is thrown. |
Definition at line 186 of file rating_algorithms.php.
| get_rating_object | ( | $MasterId = false, |
|
$MasterType = 'user' |
|||
| ) |
Function fetches object's rating.
| $MasterId | - Master object's id. |
| $MasterType | - Master object's type. |
| Exception | An exception of this type is thrown. |
Definition at line 130 of file rating_algorithms.php.
| increase_rating | ( | $MasterId, | |
| $MasterType, | |||
| $Value | |||
| ) |
Function increases rating for the specified object.
| $MasterId | - Master object's id. |
| $MasterType | - Master object's type. |
| Exception | An exception of this type is thrown. |
Definition at line 90 of file rating_algorithms.php.
| set_rating | ( | $Value, | |
$MasterId = false, |
|||
$MasterType = 'user' |
|||
| ) |
Function sets rating.
| $Value | - New value of the rating. |
| $MasterId | - Master object's id. |
| $MasterType | - Master object's type. |
| Exception | An exception of this type is thrown. |
Definition at line 226 of file rating_algorithms.php.
| $Database = false |
Cached objects.
Definition at line 38 of file rating_algorithms.php.
| $DatabaseAlgorithms = false |
Definition at line 39 of file rating_algorithms.php.
| $LinkUtilities = false |
Definition at line 40 of file rating_algorithms.php.
| $RatingAccess = false |
Definition at line 41 of file rating_algorithms.php.