Class BadgeController
Contains management code for creating badges.
-
DashboardController
-
BadgeController
Methods summary
public
|
#
Initialize( )
Make this look like a dashboard page and add the resources
Make this look like a dashboard page and add the resources
Since
1.0
|
public
|
#
Settings( integer $Page = '' )
Manage the current badges and add new ones
Manage the current badges and add new ones
Parameters
|
public
|
#
Edit( integer $BadgeID = NULL )
Edit an existing badge or add a new one
Edit an existing badge or add a new one
Parameters
Throws
ForbiddenException if no proper rules are found
|
public
|
#
Add( )
Convenience function for nice URLs
Convenience function for nice URLs
|
public
|
#
Delete( integer $BadgeID )
Remove the badge via model.
Remove the badge via model.
Parameters
Throws
NotFoundException
|
public
|
#
Toggle( integer $BadgeID )
Toggle the enabled state of a badge. Must be done via JS.
Toggle the enabled state of a badge. Must be done via JS.
Parameters
Throws
PermissionException
|
public
|
#
DeletePhoto( integer $BadgeID = FALSE, string $TransientKey = '' )
Remove the photo association of a badge. This does not remove the actual
file
Remove the photo association of a badge. This does not remove the actual
file
Parameters
- $BadgeID
integer $BadgeID
- $TransientKey
string $TransientKey
|
public
|
#
Award( integer $UserID )
You can manually award badges to users for special cases
You can manually award badges to users for special cases
Parameters
Throws
Gdn_UserException
|
Properties summary
public
array
|
$Uses
|
array('Form', 'BadgeModel', 'BadgeAwardModel') |
#
These objects will be created on instantiation and available via
$this->ObjectName
These objects will be created on instantiation and available via
$this->ObjectName
|