Overview

Packages

  • None
  • Yaga

Classes

  • ActedModel
  • ActionController
  • ActionModel
  • AwardCombo
  • BadgeAwardModel
  • BadgeController
  • BadgeModel
  • BadgesController
  • BadgesModule
  • BestController
  • BestFilterModule
  • CakeDayPost
  • CommentCount
  • CommentMarathon
  • DiscussionBodyLength
  • DiscussionCategory
  • DiscussionCount
  • DiscussionPageCount
  • HasMentioned
  • HolidayVisit
  • LeaderBoardModule
  • LengthOfService
  • ManualAward
  • NecroPost
  • NewbieComment
  • PhotoExists
  • PostCount
  • PostReactions
  • QnAAnserCount
  • RankController
  • RankModel
  • ReactController
  • ReactionCount
  • ReactionModel
  • ReflexComment
  • RulesController
  • SocialConnection
  • Yaga
  • YagaController
  • YagaHooks

Interfaces

  • YagaRule
  • Overview
  • Package
  • Class
  • Tree
  • Todo
  • Download

Class RankController

Contains management code for designing ranks.

DashboardController
Extended by RankController
Package: Yaga
Since: 1.0
Located at controllers/class.rankcontroller.php
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

$RankID
integer
$RankID

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

$RankID
integer
$RankID

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

$RankID
integer
$RankID

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

$UserID
integer
$UserID

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

Yaga API documentation generated by ApiGen 2.8.0