Users_Vote Class
Class representing 'Vote' rows in the 'Users' database You can create an object of this class either to access its non-static methods, or to actually represent a vote row in the Users database.
Item Index
Methods
__set_state
(
Users_Vote
-
$array
Implements the __set_state method, so it can work with with var_export and be re-imported successfully.
Parameters:
-
$array
Array
Returns:
Users_Vote:
Class instance
afterSaveExecute
(
Db_Result
-
$result
-
$query
-
$modifiedFields
-
$where
Updates total votes in Total table
Returns:
beforeRemove
(
Boolean
-
$pk
Calculates total votes
Parameters:
-
$pk
Array
Returns:
Boolean:
beforeSave
(
Array
-
$modifiedFields
Calculates total votes
Parameters:
-
$modifiedFields
Array
Returns:
Array:
setUp
()
The setUp() method is called the first time an object of this class is constructed.