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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
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 )