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

array
getArticleInput()

Returns input needed to create the different content types, common to all types. This is incomplete and mostly deals with the items used by the CMS to create articles.

mixed
getPublishDate()

Returns the correct publish date for this item, taking into account the Future publish and draft options. Returns boolean false when the publish date should not be set.

actionEvent()

No description

array
getEventInput()

Returns event-specific data

index()

No description

actionTextNodeInternal($apiClass)

No description

actionPoll()

No description

actionGallery()

Creates a gallery This is called when creating a thread or reply using the "Photos" tab And when uploading photos at Profile => Media => Share Photos

actionVideo()

No description

actionLink()

No description

actionPrivateMessage()

Creates a private message.

actionParseWysiwyg()

No description

actionLoadTitleEdit()

Creates the edit title form

actionSaveTitleEdit()

Saves the edited title

actionLoadeditor()

No description

actionLoadPreview()

No description

actionLoadnode()

No description

actionLoadNewPosts()

No description

renderPostNoticeTemplate($phrase_name, $data = array())

No description

renderSinglePostTemplate($node, $view, $channelBbcodes, $additionalData = array())

No description

actionBlog()

This handles all saves of blog data.

actionChannel()

This added one or more channels. It is intended to be called from the wizard.

actionSocialgroup()

This handles all saves of social group data.

actionFetchQuotes()

Returns an array of quotes

getReturnUrl($channelid, $parentid, $nodeid)

This sets a return url when creating new content and sets if the created content is a visitor message

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 30
protected array getArticleInput()

Returns input needed to create the different content types, common to all types. This is incomplete and mostly deals with the items used by the CMS to create articles.

Return Value

array Array of input items

at line 92
protected mixed getPublishDate()

Returns the correct publish date for this item, taking into account the Future publish and draft options. Returns boolean false when the publish date should not be set.

Return Value

mixed Publish date (which can be empty to save as draft) or false to not set publish date.

at line 140
actionEvent()

at line 150
protected array getEventInput()

Returns event-specific data

Return Value

array Array of input items

at line 183
index()

at line 188
protected actionTextNodeInternal($apiClass)

Parameters

$apiClass

at line 507
actionPoll()

at line 648
actionGallery()

Creates a gallery This is called when creating a thread or reply using the "Photos" tab And when uploading photos at Profile => Media => Share Photos

at line 847
actionVideo()

at line 1069
actionPrivateMessage()

Creates a private message.

at line 1140
actionParseWysiwyg()

at line 1178
actionLoadTitleEdit()

Creates the edit title form

We load the form via AJAX to ensure that the title populated in the form is the current title, instead of pulling it from the DOM.

at line 1216
actionSaveTitleEdit()

Saves the edited title

at line 1256
actionLoadeditor()

at line 1446
actionLoadPreview()

at line 1631
actionLoadnode()

at line 1890
actionLoadNewPosts()

at line 2276
protected renderPostNoticeTemplate($phrase_name, $data = array())

Parameters

$phrase_name
$data

at line 2311
protected renderSinglePostTemplate($node, $view, $channelBbcodes, $additionalData = array())

Parameters

$node
$view
$channelBbcodes
$additionalData

at line 2367
actionBlog()

This handles all saves of blog data.

at line 2661
actionChannel()

This added one or more channels. It is intended to be called from the wizard.

at line 2707
actionSocialgroup()

This handles all saves of social group data.

at line 2936
actionFetchQuotes()

Returns an array of quotes

at line 2974
protected getReturnUrl($channelid, $parentid, $nodeid)

This sets a return url when creating new content and sets if the created content is a visitor message

Parameters

$channelid
$parentid
$nodeid