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 ActedModel

Describe the user content that has been acted upon

Events:

Gdn_Model
Extended by ActedModel
Package: Yaga
Since: 1.0
Located at models/class.actedmodel.php
Methods summary
public array
# Get( integer $UserID, integer $ActionID, integer $Limit = NULL, integer $Offset = 0 )

Returns a list of all posts by a specific user that has received at least one of the specified actions.

Returns a list of all posts by a specific user that has received at least one of the specified actions.

Parameters

$UserID
integer
$UserID
$ActionID
integer
$ActionID
$Limit
integer
$Limit
$Offset
integer
$Offset

Returns

array
public array
# GetTaken( integer $UserID, integer $ActionID, integer $Limit = NULL, integer $Offset = 0 )

Returns a list of all posts of which a specific user has taken the specified action.

Returns a list of all posts of which a specific user has taken the specified action.

Parameters

$UserID
integer
$UserID
$ActionID
integer
$ActionID
$Limit
integer
$Limit
$Offset
integer
$Offset

Returns

array
public array
# GetAction( integer $ActionID, integer $Limit = NULL, integer $Offset = 0 )

Returns a list of all posts that has received at least one of the specified actions.

Returns a list of all posts that has received at least one of the specified actions.

Parameters

$ActionID
integer
$ActionID
$Limit
integer
$Limit
$Offset
integer
$Offset

Returns

array
public array
# GetBest( integer $UserID = NULL, integer $Limit = NULL, integer $Offset = 0 )

Returns a list of all posts by a specific user ordered by highest score

Returns a list of all posts by a specific user ordered by highest score

Parameters

$UserID
integer
$UserID
$Limit
integer
$Limit
$Offset
integer
$Offset

Returns

array
public array
# GetRecent( string $Timespan = 'week', integer $Limit = NULL, integer $Offset = 0 )

Returns a list of all recent scored posts ordered by highest score

Returns a list of all recent scored posts ordered by highest score

Parameters

$Timespan
string
$Timespan strtotime compatible time
$Limit
integer
$Limit
$Offset
integer
$Offset

Returns

array
protected
# JoinCategory( array & $Comments )

Attach CategoryID to Comments

Attach CategoryID to Comments

Parameters

$Comments
array
$Comments
protected array
# Union( string $Field, array $Sections )

Interleave two or more result arrays by a common field

Interleave two or more result arrays by a common field

Parameters

$Field
string
$Field
$Sections
array
$Sections Array of result arrays

Returns

array
protected
# Prepare( Array & $Content )

Pre-process content into a uniform format for output

Pre-process content into a uniform format for output

Parameters

$Content
Array
$Content By reference
protected
# Security( array & $Content )

Strip out content that this user is not allowed to see

Strip out content that this user is not allowed to see

Parameters

$Content
array
$Content Content array, by reference
protected boolean
# SecurityFilter( array $ContentItem )

Checks the view permission on an item

Checks the view permission on an item

Parameters

$ContentItem
array
$ContentItem

Returns

boolean
Whether or not the user can see the content item
protected
# Condense( array & $Content, integer $Limit, integer $Offset )

Condense an interleaved content list down to the required size

Condense an interleaved content list down to the required size

Parameters

$Content
array
$Content
$Limit
integer
$Limit
$Offset
integer
$Offset
Properties summary
protected integer $_Expiry 600
#

How long in seconds this table should be cached. Defaults to 10 minutes

How long in seconds this table should be cached. Defaults to 10 minutes

Yaga API documentation generated by ApiGen 2.8.0