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 ) |
public distribute ( integer $message_id ) | ||
$message_id | integer | Identifier of message to be distributed |
public formatCategoryTree ( array $forums ) : array | ||
$forums | array | The list of forums to format. |
Résultat | array | Formatted forum list. |
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. |
public getAgoraId ( ) : array | ||
Résultat | array | Forum, message id and application. |
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. |
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. |
public getVFS ( ) : VFS | ||
Résultat | VFS | A VFS instance. |
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. |