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
|
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
|