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 BadgeModel

Describes badges and the associated rule criteria

Events:

Gdn_Model
Extended by BadgeModel
Package: Yaga
Since: 1.0
Located at models/class.badgemodel.php
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

$BadgeID
integer
$BadgeID

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

$BadgeID
integer
$BadgeID

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

$UserID
integer
$UserID

Returns

DataSet
Yaga API documentation generated by ApiGen 2.8.0