SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class AdminAjaxController

Handles processing of various admin AJAX methods including: widget settings; links; and categories.

Functions

NameVisibilityDescription
__constructpublicConstructor
addAddonpublicPopup for adding an addon
addCategorypublicAdds a category
attrEditorpublicLoad an attribute editor for a given field
footerCompatpublic 
getEntranceArgumentspublic 
getTagSuggestionspublic 
lnkEditorpublicLoad an attribute editor for a given field
richtextImportpublicCalled by button handlers on the two RTEs and loaded in a facebox window
richtextImportIframepublicHandle an upload of a document. Echos DIV-warapped JSON with the result of the import.
setTourCompletedpublicSet a given JavaScript tour as complete, preventing it from showing again.
styleGuideDemoConditionspublicDemo AJAX JSON callback url for Fb::conditionsList
widgetDispCondParamspublicCallback url for Fb::conditionsList for the widget display conditions
widgetDispCondspublicAJAX-loaded popup content for UI to manage widget display conditions
widgetSettingspublicReturns the HTML for the settings for an individual widget.

public __construct

void $AdminAjaxController->__construct ( );

Constructor

public addAddon

void $AdminAjaxController->addAddon ( mixed $area_id , mixed $field_name );

Popup for adding an addon

public addCategory

void $AdminAjaxController->addCategory ( );

Adds a category

public attrEditor

void $AdminAjaxController->attrEditor ( );

Load an attribute editor for a given field

public footerCompat

void $AdminAjaxController->footerCompat ( );

This function does not have a description

public getEntranceArguments

void $AdminAjaxController->getEntranceArguments ( mixed $class );

This function does not have a description

public getTagSuggestions

void $AdminAjaxController->getTagSuggestions ( [ mixed $table ] );

This function does not have a description

public lnkEditor

void $AdminAjaxController->lnkEditor ( );

Load an attribute editor for a given field

public richtextImport

void $AdminAjaxController->richtextImport ( mixed $elemid );

Called by button handlers on the two RTEs and loaded in a facebox window
Shows an interface to load stuff into the editor
The editor id will br provided in $elemid

public richtextImportIframe

void $AdminAjaxController->richtextImportIframe ( );

Handle an upload of a document. Echos DIV-warapped JSON with the result of the import.

Keys include:
   'html'    The imported HTML of the document

public setTourCompleted

void $AdminAjaxController->setTourCompleted ( mixed $tour_name );

Set a given JavaScript tour as complete, preventing it from showing again.

public styleGuideDemoConditions

void $AdminAjaxController->styleGuideDemoConditions ( );

Demo AJAX JSON callback url for Fb::conditionsList

Input is GET params 'field', 'op', 'val'

Output is JSON with two keys, 'op' and 'val'. They are both
HTML strings containing Form fields for the operator
dropdown and the values dropdown/textbox

public widgetDispCondParams

void $AdminAjaxController->widgetDispCondParams ( );

Callback url for Fb::conditionsList for the widget display conditions

Input is GET params 'field', 'op', 'val'

Output is JSON with two keys, 'op' and 'val'. They are both
HTML strings containing Form fields for the operator
dropdown and the values dropdown/textbox

public widgetDispConds

void $AdminAjaxController->widgetDispConds ( );

AJAX-loaded popup content for UI to manage widget display conditions

public widgetSettings

void $AdminAjaxController->widgetSettings ( string $widget_name );

Returns the HTML for the settings for an individual widget.