class vB5_Frontend_Controller

Properties

protected $vboptions vboptions *

Methods

__construct()

No description

sendAsJson($data)

No description

showMsgPage(string $title, string $msg) deprecated

Show a simple and clear message page which contains no widget

toSeoFriendly(string $str)

Replaces special characters in a given string with dashes to make the string SEO friendly Note: This is really restrictive. If it can be helped, leave it to core's vB_String::getUrlIdent.

boolean
handleErrorsForAjax(mixed $result, mixed $return)

Handle errors that are returned by API for use in JSON AJAX responses.

verifyPostRequest()

Checks if this is a POST request

outputPage($html, $exit = true)

Any final processing, and then output the page

parseBbCodeForPreview($rawText, $options = array())

No description

addAttachments(mixed $data)

Adds attachment information so attachments can be created in one call

sendAsJsonAndCloseConnection($data)

No description

string
encodeFlashMessage(string $phrase)

Generates a signed message to pass to the following page, so that the message can be displayed briefly to the user (flashed).

Details

at line 18
__construct()

at line 30
sendAsJson($data)

Parameters

$data

at line 50
showMsgPage(string $title, string $msg) deprecated

deprecated

Show a simple and clear message page which contains no widget

Parameters

string $title Page title. HTML will be escaped.
string $msg Message to display. HTML is allowed and the caller must make sure it's valid.

at line 64
protected toSeoFriendly(string $str)

Replaces special characters in a given string with dashes to make the string SEO friendly Note: This is really restrictive. If it can be helped, leave it to core's vB_String::getUrlIdent.

Parameters

string $str The string to be converted

at line 81
protected boolean handleErrorsForAjax(mixed $result, mixed $return)

Handle errors that are returned by API for use in JSON AJAX responses.

Parameters

mixed $result The result array to populate errors into. It will contain error phrase ids.
mixed $return The returned object by the API call.

Return Value

boolean true errors are found, false, otherwise.

at line 111
protected verifyPostRequest()

Checks if this is a POST request

at line 129
protected outputPage($html, $exit = true)

Any final processing, and then output the page

Parameters

$html
$exit

at line 157
protected parseBbCodeForPreview($rawText, $options = array())

Parameters

$rawText
$options

at line 195
protected addAttachments(mixed $data)

Adds attachment information so attachments can be created in one call

This will modify the $data array to add data under the keys 'attachments' for added attachments & 'removeattachments' for attachments requested for removal.

Parameters

mixed $data array of node data for insert

at line 261
protected sendAsJsonAndCloseConnection($data)

Parameters

$data

at line 282
protected string encodeFlashMessage(string $phrase)

Generates a signed message to pass to the following page, so that the message can be displayed briefly to the user (flashed).

Parameters

string $phrase The phrase key for the message to display

Return Value

string The signed value that should be passed as a query parameter using the format flashmsg=