An abstract class for controllers of things which have categories.
This is the code documentation for the SproutCMS project
Search documentation |
class HasCategoriesAdminControllerAn abstract class for controllers of things which have categories.
Variables
Functions
public __constructvoid $HasCategoriesAdminController->__construct ( ); Constructor public _deleteSavebool $HasCategoriesAdminController->_deleteSave ( int $item_id ); Deletes an item and logs the deleted data This method should not be overridden unless absolutely necessary. public _extraMultiCategoriseunknown $HasCategoriesAdminController->_extraMultiCategorise ( ); Form to change the categories for a number of records public _getAddFormarray $HasCategoriesAdminController->_getAddForm ( ); Returns a page title and HTML for a form to add a record public _getContentsunknown $HasCategoriesAdminController->_getContents ( ); Returns the main list of records for this controller public _getContentsViewunknown $HasCategoriesAdminController->_getContentsView ( Traversable $items , string $mode , StdClass $category ); Return HTML for a resultset of items The returned HTML will be sandwiched between the refinebar and the pagination bar. public _getContentsViewListunknown $HasCategoriesAdminController->_getContentsViewList ( Traversable $items , StdClass $category ); Formats a resultset of items into an Itemlist public _getDuplicateFormunknown $HasCategoriesAdminController->_getDuplicateForm ( int $id ); Returns the edit form for duplicating a record public _getEditFormunknown $HasCategoriesAdminController->_getEditForm ( int $id ); Returns the edit form for adding a record public _getNavigationunknown $HasCategoriesAdminController->_getNavigation ( ); Returns the contents of the navigation pane protected _getRefineClausestring $HasCategoriesAdminController->_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 _getToolsunknown $HasCategoriesAdminController->_getTools ( ); Additional categry tools protected _importExtraOptionsunknown $HasCategoriesAdminController->_importExtraOptions ( ); Called when the import form is being built. Returns HTML of extra options to display, or null if no extra options. protected _importPostRecordunknown $HasCategoriesAdminController->_importPostRecord ( int $record_id , array $new_data , array $existing_record , string $type , boolean $raw_data ); Called after a record has been inserted or updated. public catAllowAddunknown $HasCategoriesAdminController->catAllowAdd ( ); Return true if categories are allowed to be added. public catAllowDeleteunknown $HasCategoriesAdminController->catAllowDelete ( mixed $category_id ); Return true if categories are allowed to be deleted. public catAllowEditunknown $HasCategoriesAdminController->catAllowEdit ( mixed $category_id ); Return true if categories are allowed to be edited. public getCategoryArchiveunknown $HasCategoriesAdminController->getCategoryArchive ( ); Returns TRUE if category archive is enabled, FALSE otherwise public postMultiCategorisevoid $HasCategoriesAdminController->postMultiCategorise ( ); Change the categories for a number of records protected updateCategoriesboolean $HasCategoriesAdminController->updateCategories ( mixed $item_id , array $categories ); Updates the category table for this controller (so for articles, the updated table will be articles_cat_join) so that the records for the specified item match the category ids provided. |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|