Class ActionModel
Describe the available actions one can react with to other user content.
Events:
-
Gdn_Model
-
ActionModel
Methods summary
public
|
#
__construct( )
Defines the related database table name.
Defines the related database table name.
|
public
dataset
|
#
Get( )
Returns a list of all available actions
Returns a list of all available actions
Returns
dataset
|
public
dataset
|
#
GetByID( integer $ActionID )
Returns data for a specific action
Returns data for a specific action
Parameters
- $ActionID
integer $ActionID
Returns
dataset
|
public
DataSet
|
#
GetNewestAction( )
Gets the last inserted Action
Gets the last inserted Action
Returns
DataSet
|
public
boolean
|
#
Exists( integer $ActionID )
Determine if a specified action exists
Determine if a specified action exists
Parameters
- $ActionID
integer $ActionID
Returns
boolean
|
public
boolean
|
#
Delete( integer $ActionID, integer $ReplacementID = NULL )
Remove an action from the db
Remove an action from the db
Parameters
- $ActionID
integer $ActionID
- $ReplacementID
integer $ReplacementID what action ID existing reactions should report to. Null will
delete the associated reactions.
Returns
boolean Whether or not the deletion was successful
|
public
boolean
|
#
SaveSort( array $SortArray )
Updates the sort field for each action in the sort array
Updates the sort field for each action in the sort array
Parameters
- $SortArray
array $SortArray
Returns
boolean
|