Class BadgeModel
Describes badges and the associated rule criteria
Events:
-
Gdn_Model
-
BadgeModel
Methods summary
public
|
#
__construct( )
Defines the related database table name.
Defines the related database table name.
|
public
DataSet
|
#
Get( )
Returns a list of all badges
Returns a list of all badges
Returns
DataSet
|
public
DataSet
|
#
GetLimit( integer $Limit = FALSE, integer $Offset = FALSE )
Gets the badge list with an optional limit and offset
Gets the badge list with an optional limit and offset
Parameters
- $Limit
integer $Limit
- $Offset
integer $Offset
Returns
DataSet
|
public
integer
|
#
GetCount( )
Total number of badges in the system
Total number of badges in the system
Returns
integer
|
public
DataSet
|
#
GetByID( integer $BadgeID )
Returns data for a specific badge
Returns data for a specific badge
Parameters
Returns
DataSet
|
public
|
#
Enable( integer $BadgeID, boolean $Enable )
Enable or disable a badge
Enable or disable a badge
Parameters
- $BadgeID
integer $BadgeID
- $Enable
boolean $Enable
|
public
boolean
|
#
Delete( integer $BadgeID )
Remove a badge and associated awards
Remove a badge and associated awards
Parameters
Returns
boolean
Throws
Exception
|
public
DataSet
|
#
GetWithEarned( integer $UserID )
Get the full list of badges joined with the award data for a specific user
This shouldn't really be here, but I can't think of a good place to put it
Get the full list of badges joined with the award data for a specific user
This shouldn't really be here, but I can't think of a good place to put it
Parameters
Returns
DataSet
|