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 BestController

This is all the frontend pages dealing with badges

Gdn_Controller
Extended by BestController
Package: Yaga
Since: 1.0
Located at controllers/class.bestcontroller.php
Methods summary
public
# Initialize( )

Initializes a frontend controller with the Best Filter, New Discussion, and Discussion Filter modules.

Initializes a frontend controller with the Best Filter, New Discussion, and Discussion Filter modules.

public
# Index( integer $Page = 0 )

Default to showing the best of all time

Default to showing the best of all time

Parameters

$Page
integer
$Page What page of content should be shown
public
# AllTime( integer $Page = 0 )

Get the highest scoring content from all time

Get the highest scoring content from all time

Parameters

$Page
integer
$Page What page of content should be shown
public
# Action( integer $ID = NULL, integer $Page = 0 )

Get the latest promoted content

Get the latest promoted content

Parameters

$ID
integer
$ID Filter on a specific action ID
$Page
integer
$Page What page of content should be shown
protected array
# _TranslatePage( integer $Page )

Converts a page number to an offset and limit useful for model queries.

Converts a page number to an offset and limit useful for model queries.

Parameters

$Page
integer
$Page What page of content should be shown

Returns

array
An array containing the offset and limit
protected
# _BuildPager( integer $Offset, integer $Limit, string $Link )

Builds a simple more/less pager to be rendered on the page

Builds a simple more/less pager to be rendered on the page

Parameters

$Offset
integer
$Offset
$Limit
integer
$Limit
$Link
string
$Link
Properties summary
protected array $_Content array()
#

The list of content the filters want to show

The list of content the filters want to show

public array $Uses array('ActedModel')
#

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