class vB5_Frontend_Controller_Activity extends vB5_Frontend_Controller

Properties

protected $vboptions vboptions * from vB5_Frontend_Controller

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

fetchChannelNodes($parent, $page, $perpage, $depth = 3, $contentype = 0, $options = false)

No description

actionGet()

No description

actionBloglist()

No description

processActivityStream($nodes, $showChannelInfo, $maxpages = 0)

No description

array
processArticles(array $nodes, int $maxpages = 0, string $articleDisplayColumns = '')

Processes article results to prepare the rendered templates for returning.

processConversationDetail($nodes, $filters, $maxpages = 0)

No description

canUseMultiquote($starterid)

No description

processTopics($nodes, $stickynodes, $maxpages = 0)

No description

actionfetchtext()

This gets nodeText for a single node.

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 15
protected fetchChannelNodes($parent, $page, $perpage, $depth = 3, $contentype = 0, $options = false)

Parameters

$parent
$page
$perpage
$depth
$contentype
$options

at line 36
actionGet()

at line 320
actionBloglist()

at line 396
protected processActivityStream($nodes, $showChannelInfo, $maxpages = 0)

Parameters

$nodes
$showChannelInfo
$maxpages

at line 456
protected array processArticles(array $nodes, int $maxpages = 0, string $articleDisplayColumns = '')

Processes article results to prepare the rendered templates for returning.

Parameters

array $nodes Node search result
int $maxpages Max pages of results
string $articleDisplayColumns Article display columns setting

Return Value

array Array of rendered results for display

at line 507
protected processConversationDetail($nodes, $filters, $maxpages = 0)

Parameters

$nodes
$filters
$maxpages

at line 616
protected canUseMultiquote($starterid)

Parameters

$starterid

at line 640
protected processTopics($nodes, $stickynodes, $maxpages = 0)

Parameters

$nodes
$stickynodes
$maxpages

at line 720
actionfetchtext()

This gets nodeText for a single node.