Class RankController
Contains management code for designing ranks.
-
DashboardController
-
RankController
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( )
Manage the current ranks and add new ones
Manage the current ranks and add new ones
|
public
|
#
Edit( integer $RankID = NULL )
Edit an existing rank or add a new one
Edit an existing rank 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 $RankID )
Remove the rank via model.
Remove the rank via model.
Parameters
Throws
NotFoundException
|
public
|
#
Toggle( integer $RankID )
Toggle the enabled state of a rank. Must be done via JS.
Toggle the enabled state of a rank. Must be done via JS.
Parameters
Throws
PermissionException
|
public
|
#
DeletePhoto( string $TransientKey = '' )
Remove the photo association of rank promotions. This does not remove the
actual file.
Remove the photo association of rank promotions. This does not remove the
actual file.
Parameters
- $TransientKey
string $TransientKey
|
public
|
#
Promote( integer $UserID )
You can manually award ranks to users for special cases
You can manually award ranks to users for special cases
Parameters
Throws
Gdn_UserException
|
public
|
#
Sort( )
This takes in a sort array and updates the rank sort order.
This takes in a sort array and updates the rank sort order.
Renders the Save tree and/or the Result of the sort update.
|
Properties summary
public
array
|
$Uses
|
array('Form', 'RankModel') |
#
These objects will be created on instantiation and available via
$this->ObjectName
These objects will be created on instantiation and available via
$this->ObjectName
|