class vB5_Frontend_Controller_Bbcode extends vB5_Frontend_Controller

Properties

protected $vboptions vboptions * from vB5_Frontend_Controller
static protected $needDebug

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

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).

static 
parse($text, $options = array(), $attachments = array(), $cacheInfo = array())

No description

static 
parseWysiwyg($text, $options = array(), $attachments = array())

No description

static 
verifyImgCheck($text, $options = array())

No description

static 
parseWysiwygForPreview($text, $options = array(), $attachments = array())

No description

evalCode($code)

No description

actionResolveIp($ip)

No description

string
parseNodeText($nodeid, $bbCodeOptions = array(), $contentPage = 1)

parse the text table's rawtext field. At this point we just register. We do the parse and replace later in a block

string
parseNodePreview(int $nodeid, array $bbCodeOptions = array())

parse the text table's rawtext field. At this point we just register. We do the parse and replace later in a block

fetchPageTitle(int $nodeid, int $contentPageId = 1)

gets a single page title.

fetchArticlePaging($nodeid)

gets a single page title.

static string
debugInfo()

returns a placeholder for the debug information.

static bool
needDebug()

Returns the flag saying whether we should add debug information

Details

__construct()

sendAsJson($data)

Parameters

$data

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.

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

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.

protected verifyPostRequest()

Checks if this is a POST request

protected outputPage($html, $exit = true)

Any final processing, and then output the page

Parameters

$html
$exit

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

Parameters

$rawText
$options

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

protected sendAsJsonAndCloseConnection($data)

Parameters

$data

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=

at line 18
static parse($text, $options = array(), $attachments = array(), $cacheInfo = array())

Parameters

$text
$options
$attachments
$cacheInfo

at line 60
static parseWysiwyg($text, $options = array(), $attachments = array())

Parameters

$text
$options
$attachments

at line 72
static verifyImgCheck($text, $options = array())

Parameters

$text
$options

at line 116
static parseWysiwygForPreview($text, $options = array(), $attachments = array())

Parameters

$text
$options
$attachments

at line 213
evalCode($code)

Parameters

$code

at line 222
actionResolveIp($ip)

Parameters

$ip

at line 235
string parseNodeText($nodeid, $bbCodeOptions = array(), $contentPage = 1)

parse the text table's rawtext field. At this point we just register. We do the parse and replace later in a block

Parameters

$nodeid
$bbCodeOptions
$contentPage

Return Value

string

at line 263
string parseNodePreview(int $nodeid, array $bbCodeOptions = array())

parse the text table's rawtext field. At this point we just register. We do the parse and replace later in a block

Parameters

int $nodeid
array $bbCodeOptions -- array of bbcode options

Return Value

string

at line 279
fetchPageTitle(int $nodeid, int $contentPageId = 1)

gets a single page title.

Parameters

int $nodeid
int $contentPageId -- the content page. Defaults to one

at line 287
fetchArticlePaging($nodeid)

gets a single page title.

Parameters

$nodeid

at line 297
static string debugInfo()

returns a placeholder for the debug information.

Return Value

string

at line 308
static bool needDebug()

Returns the flag saying whether we should add debug information

Return Value

bool