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

actionGetdefaultavatars()

Gets the default Avatars- echo's html

actionGetAvatarUrl()

gets the avatar url for a specific user.

actionSetDefaultAvatar()

sets avatar to one of the defaults

actionResetAvatar()

resets the avatar to the default/no avatar

actionUploadProfilepicture()

uploads an image and sets it to be the avatar

actionApplyfilter()

Sets a filter and returns the filtered Activity list

actionFollowButton()

Add/delete following from user *

actionFollowingFilter()

Fetches the info applying the filter criteria. *

actionFollowers()

Add/delete followers from user. *

actionFollowersPagination()

Handles subscribers page pagination

actionApplyFollowingFilter()

Fetches the nodes info applying the following filter criteria. *

actionfetchAbout()

Fetch Profile About content.

actionfetchMedia()

Fetch Profile Media content.

actionSaveProfileSettings()

Save profile settings from user

actionSaveAccountSettings()

Save account settings from user

actionSaveDst()

Updates the DST if needed

actionSavePrivacySettings()

No description

actionWithdrawPrivacyConsent()

No description

actionUpdateStatus()

No description

actionApplyMediaFilter()

Filter & sort media list

actionGetUnsubscribeOverlay()

No description

actiontextDetail()

Show a single text detail page.

actionsaveStylevar()

Saves profile customization

actionrevertStylevars()

Get default stylevar values

actionsaveDefault()

Save current style as default for the site

actionresetDefault()

Resetting the user changed stylevars to default values

actiongetPhotoTabs()

Fetch the tab info for the photo selector

actiongetPhotoTabContent()

Fetch the photo tab content for the photo selector

actionPreviewSignature()

No description

actionExportPersonalData()

No description

mixed
escapeCsvValue(mixed $value)

Escapes a value for insertion in a CSV file.

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
actionGetdefaultavatars()

Gets the default Avatars- echo's html

at line 33
actionGetAvatarUrl()

gets the avatar url for a specific user.

at line 49
actionSetDefaultAvatar()

sets avatar to one of the defaults

at line 66
actionResetAvatar()

resets the avatar to the default/no avatar

at line 80
actionUploadProfilepicture()

uploads an image and sets it to be the avatar

at line 116
actionApplyfilter()

Sets a filter and returns the filtered Activity list

at line 262
actionFollowButton()

Add/delete following from user *

at line 285
actionFollowingFilter()

Fetches the info applying the filter criteria. *

at line 344
actionFollowers()

Add/delete followers from user. *

at line 367
actionFollowersPagination()

Handles subscribers page pagination

at line 433
actionApplyFollowingFilter()

Fetches the nodes info applying the following filter criteria. *

at line 511
actionfetchAbout()

Fetch Profile About content.

at line 533
actionfetchMedia()

Fetch Profile Media content.

at line 565
actionSaveProfileSettings()

Save profile settings from user

at line 652
actionSaveAccountSettings()

Save account settings from user

at line 792
actionSaveDst()

Updates the DST if needed

at line 839
actionToggleProfileCustomizations()

at line 859
actionSaveNotificationSettings()

at line 928
actionSavePrivacySettings()

at line 981
actionWithdrawPrivacyConsent()

at line 1013
actionUpdateStatus()

at line 1036
actionApplyMediaFilter()

Filter & sort media list

at line 1076
actionGetUnsubscribeOverlay()

at line 1103
actiontextDetail()

Show a single text detail page.

at line 1124
actionsaveStylevar()

Saves profile customization

at line 1155
actionrevertStylevars()

Get default stylevar values

at line 1210
actionsaveDefault()

Save current style as default for the site

at line 1251
actionresetDefault()

Resetting the user changed stylevars to default values

at line 1291
actiongetPhotoTabs()

Fetch the tab info for the photo selector

at line 1320
actiongetPhotoTabContent()

Fetch the photo tab content for the photo selector

at line 1437
actionPreviewSignature()

at line 1454
actionExportPersonalData()

at line 1568
protected mixed escapeCsvValue(mixed $value)

Escapes a value for insertion in a CSV file.

Parameters

mixed $value A Scalar value to escape

Return Value

mixed The escaped value.