SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class PageAdminController

Handles admin processing for pages

Variables

NameVisibilityDescription
$controller_name 
$friendly_name 
$main_delete 

Functions

NameVisibilityDescription
__constructpublicConstructor
_addSavepublicSaves the provided POST data into a new page in the database
_deletePostSavepublicDoes custom actions after the _deleteSave method is called, e.g. clearing cache data
_deletePreSavepublicDoes custom actions before _deleteSave method is called, e.g. extra security checks
_editSavepublicSaves the provided POST data into this page in the database
_extraLinkCheckerpublicStarts the link checker
_extraLinkCheckerInfopublicTells the user the link checker is running
_extraLinkspublicShows the links (incoming and outgoing) for a page
_extraMenuGroupspublicPage organisation tool
_extraNeedApprovalpublicList of pages which need approval
_extraOrganisepublicPage organisation tool
_getAddFormpublicReturns the add form for adding a page
_getAddSubActionspublicReturn the sub-actions for adding; for spec AdminController::renderSubActions
_getCustomAddSaveHTMLpublic 
_getCustomEditSaveHTMLpublic 
_getDeleteFormpublicReturns the edit form for editing the specified page
_getEditFormpublicReturns the edit form for editing the specified page
_getEditLiveUrlpublicReturn the URL to use for the 'view live site' button, when editing a given record
_getImportpublicReturns a form which contains options for doing an import
_getNavigationpublicReturns the contents of the navigation pane for the tree
_getRefineClauseprotectedReturn the WHERE clause to use for a given key which is provided by the RefineBar
_getToolspublicReturns the tools to show in the left navigation
_importDatapublicDoes the actual import
_importUploadFormpublicReturn HTML for the import upload form
_intropublicReturns the intro HTML for this controller.
_invalidateCachespublicThis is called after every add, edit and delete, as well as other (i.e. bulk) actions.
addHistoryItemprivateAdds a history item for a page
ajaxGetMenuGroupspublicReturn a list of menu groups for a selected parent page
ajaxGetRevpublicGets the text of a single revision
ajaxListWidgetTemplatespublicReturn JSON list of custom widget templates as defined by skin config
checkControllerEntranceprivate (static)Validate given controller implements FrontEndEntrance
clearNavigationCachepublicForces a clear of the pagecache
convertForChangeCheckprivateMakes the provided html text be in a standard format to ensure the integrity of the change check
createPageTreenodeprivateCreate a page
cronCheckStalepublicCheck for stale page content and send emails regarding stale pages; to be run via cron
cronLinkCheckerpublicCron version of the link checker
cronPageActivatepublicActivates AutoLaunch revisions
cronPageDeactivatepublicDeactivates pages after set date
filetreeClosepublicSaves in the session data the currently open pages in the pages tree (navigation pane)
filetreeOpenpublicReturns the children pages for a specific page, in a format required by jqueryFileTree.
fixRecordOrderprotectedIf the specified item needs a record number to be set,
importNotespublicFacebox info box
importPreviewAjaxpublicPreview the pages which will be created
importUploadActionpublicUpload and do initial processing on the file
linkCheckerActionpublicStarts the link checker
menuGroupsActionpublicSave the menu groups
previewpublic 
reindexAllpublicDoes a complete re-index of all pages
reindexItemprivateDoes a re-index for a page
renderPreviewTreenodeprivate (static)Render a single node for the preview tree we return in `import_preview_ajax`
reorderToppublicShows the reorder screen (which is shown in a popup box) for re-ordering the top-level stuff

public __construct

void $PageAdminController->__construct ( );

Constructor

public _addSave

unknown $PageAdminController->_addSave ( int &$page_id );

Saves the provided POST data into a new page in the database

public _deletePostSave

void $PageAdminController->_deletePostSave ( int $item_id );

Does custom actions after the _deleteSave method is called, e.g. clearing cache data

public _deletePreSave

void $PageAdminController->_deletePreSave ( int $item_id );

Does custom actions before _deleteSave method is called, e.g. extra security checks

public _editSave

unknown $PageAdminController->_editSave ( int $page_id );

Saves the provided POST data into this page in the database

public _extraLinkChecker

unknown $PageAdminController->_extraLinkChecker ( );

Starts the link checker

public _extraLinkCheckerInfo

unknown $PageAdminController->_extraLinkCheckerInfo ( mixed $id );

Tells the user the link checker is running

public _extraLinks

unknown $PageAdminController->_extraLinks ( mixed $id );

Shows the links (incoming and outgoing) for a page

public _extraMenuGroups

unknown $PageAdminController->_extraMenuGroups ( );

Page organisation tool
Bulk renaming, reordering and reparenting

public _extraNeedApproval

unknown $PageAdminController->_extraNeedApproval ( );

List of pages which need approval

public _extraOrganise

unknown $PageAdminController->_extraOrganise ( );

Page organisation tool
Bulk renaming, reordering and reparenting

public _getAddForm

string $PageAdminController->_getAddForm ( );

Returns the add form for adding a page

public _getAddSubActions

array $PageAdminController->_getAddSubActions ( );

Return the sub-actions for adding; for spec AdminController::renderSubActions

public _getCustomAddSaveHTML

unknown $PageAdminController->_getCustomAddSaveHTML ( );

This function does not have a description

public _getCustomEditSaveHTML

unknown $PageAdminController->_getCustomEditSaveHTML ( mixed $item_id );

This function does not have a description

public _getDeleteForm

string $PageAdminController->_getDeleteForm ( int $id );

Returns the edit form for editing the specified page

public _getEditForm

string $PageAdminController->_getEditForm ( int $id );

Returns the edit form for editing the specified page

public _getEditLiveUrl

null|string $PageAdminController->_getEditLiveUrl ( int $item_id );

Return the URL to use for the 'view live site' button, when editing a given record

public _getImport

unknown $PageAdminController->_getImport ( mixed $filename );

Returns a form which contains options for doing an import

public _getNavigation

unknown $PageAdminController->_getNavigation ( );

Returns the contents of the navigation pane for the tree

protected _getRefineClause

string $PageAdminController->_getRefineClause ( string $key , string $val , array &$query_params );

Return the WHERE clause to use for a given key which is provided by the RefineBar

Allows custom non-table clauses to be added.
Is only called for key names which begin with an underscore.
The base table is aliased to 'item'.

public _getTools

unknown $PageAdminController->_getTools ( );

Returns the tools to show in the left navigation

public _importData

unknown $PageAdminController->_importData ( string $filename );

Does the actual import

public _importUploadForm

unknown $PageAdminController->_importUploadForm ( );

Return HTML for the import upload form

public _intro

unknown $PageAdminController->_intro ( );

Returns the intro HTML for this controller.
Looks for a view named "admin/<controller-name>_intro", and loads it if found.
Otherwise, loads the view, "admin/generic_intro".

public _invalidateCaches

void $PageAdminController->_invalidateCaches ( string $action [, int $item_id ] );

This is called after every add, edit and delete, as well as other (i.e. bulk) actions.
Use it to clear any frontend caches. The default is an empty method.

private addHistoryItem

unknown $PageAdminController->addHistoryItem ( mixed $page_id , mixed $changes_made [, mixed $editor ] );

Adds a history item for a page

public ajaxGetMenuGroups

void $PageAdminController->ajaxGetMenuGroups ( mixed $parent_page_id );

Return a list of menu groups for a selected parent page

public ajaxGetRev

void $PageAdminController->ajaxGetRev ( int $id );

Gets the text of a single revision

public ajaxListWidgetTemplates

void $PageAdminController->ajaxListWidgetTemplates ( );

Return JSON list of custom widget templates as defined by skin config
AJAX called

private checkControllerEntrance

bool PageAdminController::checkControllerEntrance ( string $controller , int $page_id );

Validate given controller implements FrontEndEntrance

public clearNavigationCache

void $PageAdminController->clearNavigationCache ( );

Forces a clear of the pagecache

private convertForChangeCheck

unknown $PageAdminController->convertForChangeCheck ( mixed $text );

Makes the provided html text be in a standard format to ensure the integrity of the change check

private createPageTreenode

unknown $PageAdminController->createPageTreenode ( mixed $node , mixed $parent_id , mixed $images , mixed $headings , mixed $operator );

Create a page

public cronCheckStale

void $PageAdminController->cronCheckStale ( );

Check for stale page content and send emails regarding stale pages; to be run via cron

public cronLinkChecker

void $PageAdminController->cronLinkChecker ( );

Cron version of the link checker

public cronPageActivate

unknown $PageAdminController->cronPageActivate ( );

Activates AutoLaunch revisions

public cronPageDeactivate

unknown $PageAdminController->cronPageDeactivate ( );

Deactivates pages after set date

public filetreeClose

void $PageAdminController->filetreeClose ( );

Saves in the session data the currently open pages in the pages tree (navigation pane)
Uses the POST param 'pages', and is usually run through an AJAX call.

public filetreeOpen

void $PageAdminController->filetreeOpen ( );

Returns the children pages for a specific page, in a format required by jqueryFileTree.
Uses the POST param 'dir', and is usually run through an AJAX call.

protected fixRecordOrder

void $PageAdminController->fixRecordOrder ( int $item_id );

If the specified item needs a record number to be set,
Puts this item at the end of the list.

This custom version adds subsite support

public importNotes

void $PageAdminController->importNotes ( mixed $view_name );

Facebox info box

public importPreviewAjax

void $PageAdminController->importPreviewAjax ( );

Preview the pages which will be created

public importUploadAction

void $PageAdminController->importUploadAction ( );

Upload and do initial processing on the file

public linkCheckerAction

void $PageAdminController->linkCheckerAction ( );

Starts the link checker

public menuGroupsAction

void $PageAdminController->menuGroupsAction ( );

Save the menu groups

public preview

void $PageAdminController->preview ( [ mixed $item_id ] );

This function does not have a description

public reindexAll

void $PageAdminController->reindexAll ( );

Does a complete re-index of all pages

private reindexItem

unknown $PageAdminController->reindexItem ( mixed $item_id , mixed $name , mixed $text );

Does a re-index for a page

private renderPreviewTreenode

void PageAdminController::renderPreviewTreenode ( mixed $node );

Render a single node for the preview tree we return in `import_preview_ajax`

public reorderTop

void $PageAdminController->reorderTop ( );

Shows the reorder screen (which is shown in a popup box) for re-ordering the top-level stuff
This custom version adds subsite support