SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class ListAdminController

Any controller which is essentially a short list of items, which are not substantial enough
to warrant a categories system

Required fields for a list controller table:
  id
  name
  record_order

Variables

NameVisibilityDescription
$main_order 

Functions

NameVisibilityDescription
__constructpublicConstructor
_deleteSavepublicDeletes an item and logs the deleted data
_getNavigationpublicReturns the contents of the navigation pane for the list
_getToolspublicReturns the tools to show in the left navigation
fixRecordOrderprotectedIf the specified item needs a record number to be set,
reorderpublicShows the reorder screen (which is shown in a popup box) for re-ordering the children items
reorderSavepublicSaves a reorder

public __construct

void $ListAdminController->__construct ( );

Constructor

public _deleteSave

bool $ListAdminController->_deleteSave ( int $item_id );

Deletes an item and logs the deleted data

public _getNavigation

unknown $ListAdminController->_getNavigation ( );

Returns the contents of the navigation pane for the list

public _getTools

unknown $ListAdminController->_getTools ( );

Returns the tools to show in the left navigation

protected fixRecordOrder

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

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

public reorder

void $ListAdminController->reorder ( );

Shows the reorder screen (which is shown in a popup box) for re-ordering the children items

public reorderSave

void $ListAdminController->reorderSave ( );

Saves a reorder