PHP Класс Agora, 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.
Автор: Marko Djukic ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
distribute ( integer $message_id ) Send new posts to a distribution email address for a wider audience
formatCategoryTree ( array $forums ) : array Formats a list of forums, showing each child of a parent with appropriate indent using '.
formatColumnHeaders ( array $columns, string $sort_by, string $sort_dir, string $view ) : array Formats column headers have sort links and sort arrows.
getAgoraId ( ) : array Determines the requested forum_id, message_id and application by checking first if they are passed as the single encoded var or individual vars.
getAvatarUrl ( $avatar_path, $scopeend_sid = true )
getCAPTCHA ( boolean $new = false ) : string Returns a new or the current CAPTCHA string.
getSortBy ( string $view ) : string Returns the column to sort by, checking first if it is specified in the URL, then returning the value stored in prefs.
getSortDir ( string $view ) : integer Returns the sort direction, checking first if it is specified in the URL, then returning the value stored in prefs.
getVFS ( ) : VFS Returns a {@link VFS} instance.
setAgoraId ( $forum_id, $message_id, $url = '', $scope = null, $encode = false ) : string Creates the Agora id.
validateAvatar ( $avatar_path )

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

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

Send new posts to a distribution email address for a wider audience
public distribute ( integer $message_id )
$message_id integer Identifier of message to be distributed

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

. ' as a leader.
public formatCategoryTree ( array $forums ) : array
$forums array The list of forums to format.
Результат array Formatted forum list.

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

Formats column headers have sort links and sort arrows.
public formatColumnHeaders ( array $columns, string $sort_by, string $sort_dir, string $view ) : array
$columns array The columns to format.
$sort_by string The current 'sort-by' column.
$sort_dir string The current sort direction.
$view string The view name, used to identify preference settings for sorting.
Результат array The formated column headers to be displayed.

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

Determines the requested forum_id, message_id and application by checking first if they are passed as the single encoded var or individual vars.
public getAgoraId ( ) : array
Результат array Forum, message id and application.

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

public getAvatarUrl ( $avatar_path, $scopeend_sid = true )

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

Returns a new or the current CAPTCHA string.
public getCAPTCHA ( boolean $new = false ) : string
$new boolean If true, a new CAPTCHA is created and returned. The current, to-be-confirmed string otherwise.
Результат string A CAPTCHA string.

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

Returns the column to sort by, checking first if it is specified in the URL, then returning the value stored in prefs.
public getSortBy ( string $view ) : string
$view string The view name, used to identify preference settings for sorting.
Результат string The column to sort by.

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

Returns the sort direction, checking first if it is specified in the URL, then returning the value stored in prefs.
public getSortDir ( string $view ) : integer
$view string The view name, used to identify preference settings for sorting.
Результат integer The sort direction, 0 = ascending, 1 = descending.

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

Returns a {@link VFS} instance.
public getVFS ( ) : VFS
Результат VFS A VFS instance.

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

Creates the Agora id.
public setAgoraId ( $forum_id, $message_id, $url = '', $scope = null, $encode = false ) : string
Результат string If passed with the $url parameter, returns a completed url with the agora_id tacked on at the end, otherwise returns the simple agora_id.

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

public validateAvatar ( $avatar_path )