Show:

Users_Vote Class

Extends Base_Users_Vote
Module: Users

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.

Methods

__set_state

(
  • $array
)
Users_Vote

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

afterRemoveExecute

(
  • $result
  • $query
)
Db_Result

Updates total votes in Total table

Parameters:

Returns:

afterSaveExecute

(
  • $result
  • $query
  • $modifiedFields
  • $where
)
Db_Result

Updates total votes in Total table

Parameters:

Returns:

beforeRemove

(
  • $pk
)
Boolean

Calculates total votes

Parameters:

  • $pk Array

Returns:

Boolean:

beforeSave

(
  • $modifiedFields
)
Array

Calculates total votes

Parameters:

  • $modifiedFields Array

Returns:

Array:

setUp

()

The setUp() method is called the first time an object of this class is constructed.