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 BadgeController

Contains management code for creating badges.

DashboardController
Extended by BadgeController
Package: Yaga
Since: 1.0
Located at controllers/class.badgecontroller.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( integer $Page = '' )

Manage the current badges and add new ones

Manage the current badges and add new ones

Parameters

$Page
integer
$Page
public
# Edit( integer $BadgeID = NULL )

Edit an existing badge or add a new one

Edit an existing badge or add a new one

Parameters

$BadgeID
integer
$BadgeID

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

$BadgeID
integer
$BadgeID

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

$BadgeID
integer
$BadgeID

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

$UserID
integer
$UserID

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

Yaga API documentation generated by ApiGen 2.8.0