메소드 | 설명 | |
---|---|---|
__construct ( $scope ) | Constructor | |
getBareForums ( ) : array | Get forums ids and titles | |
getForumId ( string $forum_name ) : integer | Returns an ID for a given forum name. | |
getThreadsByForumOwner ( string $forum_owner, integer $thread_root, boolean $all_levels = false, string $sort_by = 'message_modifystamp', integer $sort_dir, boolean $message_view = false, string $from, string $count ) | Returns a list of threads. |
메소드 | 설명 | |
---|---|---|
_getForums ( integer $root_forum, boolean $formatted = true, string $sort_by = 'forum_name', integer $sort_dir, boolean $add_scope = false, string $from, string $count ) : array | Fetches a list of forums. | |
_getThreads ( integer $thread_root, boolean $all_levels = false, string $sort_by = 'message_modifystamp', integer $sort_dir, boolean $message_view = false, string $from, string $count ) | Returns a list of threads. |
메소드 | 설명 | |
---|---|---|
_buildThreadsQuery ( string $forum_owner = null, integer $thread_root, boolean $all_levels = false, string $sort_by = 'message_modifystamp', integer $sort_dir, boolean $message_view = false, string $from, string $count ) | Build threads query. |
protected _getForums ( integer $root_forum, boolean $formatted = true, string $sort_by = 'forum_name', integer $sort_dir, boolean $add_scope = false, string $from, string $count ) : array | ||
$root_forum | integer | The first level forum. |
$formatted | boolean | Whether to return the list formatted or raw. |
$sort_by | string | The column to sort by. |
$sort_dir | integer | Sort direction, 0 = ascending, 1 = descending. |
$add_scope | boolean | Add parent forum if forum for another scopelication. |
$from | string | The forum to start listing at. |
$count | string | The number of forums to return. |
리턴 | array | An array of forums. |
protected _getThreads ( integer $thread_root, boolean $all_levels = false, string $sort_by = 'message_modifystamp', integer $sort_dir, boolean $message_view = false, string $from, string $count ) | ||
$thread_root | integer | Message at which to start the thread. If null get all forum threads |
$all_levels | boolean | Show all child levels or just one level. |
$sort_by | string | The column by which to sort. |
$sort_dir | integer | The direction by which to sort: 0 - ascending 1 - descending |
$message_view | boolean | |
$from | string | The thread to start listing at. |
$count | string | The number of threads to return. |
public getBareForums ( ) : array | ||
리턴 | array | An array of forums and form names. |
public getForumId ( string $forum_name ) : integer | ||
$forum_name | string | The full forum name. |
리턴 | integer | The ID of the forum. |
public getThreadsByForumOwner ( string $forum_owner, integer $thread_root, boolean $all_levels = false, string $sort_by = 'message_modifystamp', integer $sort_dir, boolean $message_view = false, string $from, string $count ) | ||
$forum_owner | string | Forum owner |
$thread_root | integer | Message at which to start the thread. If null get all forum threads |
$all_levels | boolean | Show all child levels or just one level. |
$sort_by | string | The column by which to sort. |
$sort_dir | integer | The direction by which to sort: 0 - ascending 1 - descending |
$message_view | boolean | |
$from | string | The thread to start listing at. |
$count | string | The number of threads to return. |