PHP Class 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.
Author: Marko Djukic ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode Description
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 )

Method Details

distribute() public méthode

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() public méthode

. ' as a leader.
public formatCategoryTree ( array $forums ) : array
$forums array The list of forums to format.
Résultat array Formatted forum list.

formatColumnHeaders() public méthode

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.
Résultat array The formated column headers to be displayed.

getAgoraId() public méthode

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
Résultat array Forum, message id and application.

getAvatarUrl() public méthode

public getAvatarUrl ( $avatar_path, $scopeend_sid = true )

getCAPTCHA() public méthode

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.
Résultat string A CAPTCHA string.

getSortBy() public méthode

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.
Résultat string The column to sort by.

getSortDir() public méthode

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.
Résultat integer The sort direction, 0 = ascending, 1 = descending.

getVFS() public méthode

Returns a {@link VFS} instance.
public getVFS ( ) : VFS
Résultat VFS A VFS instance.

setAgoraId() public méthode

Creates the Agora id.
public setAgoraId ( $forum_id, $message_id, $url = '', $scope = null, $encode = false ) : string
Résultat 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 méthode

public validateAvatar ( $avatar_path )