PHP Класс Agora_Driver_SplitSql, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Duck ([email protected])
Наследование: extends Agora_Driver
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( $scope )

_getForums() защищенный Метод

Fetches a list of forums.
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.

_getThreads() защищенный Метод

Returns a list of threads.
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.

getBareForums() публичный Метод

Get forums ids and titles
public getBareForums ( ) : array
Результат array An array of forums and form names.

getForumId() публичный Метод

Returns an ID for a given forum name.
public getForumId ( string $forum_name ) : integer
$forum_name string The full forum name.
Результат integer The ID of the forum.

getThreadsByForumOwner() публичный Метод

Returns a list of threads.
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.