SproutCMS

This is the code documentation for the SproutCMS project

class ManagedAdminController

This is a generic controller which all controllers which are managed in the admin area should extend.

Required fields for a managed controller table:
  id

Source code (19 results)

/modules/HomePage/Controllers/Admin/HomePageAdminController.php   Highlighted file source

Line 16: use Sprout\Controllers\Admin\ManagedAdminController;
Line 24: class HomePageAdminController extends ManagedAdminController

/sprout/Controllers/Admin/ActionLogAdminController.php   Highlighted file source

Line 37: class ActionLogAdminController extends ManagedAdminController

/sprout/Controllers/Admin/CategoryAdminController.php   Highlighted file source

Line 36: abstract class CategoryAdminController extends ManagedAdminController {

/sprout/Controllers/Admin/EmailTextAdminController.php   Highlighted file source

Line 24: class EmailTextAdminController extends ManagedAdminController

/sprout/Controllers/Admin/ExtraPageAdminController.php   Highlighted file source

Line 29: class ExtraPageAdminController extends ManagedAdminController

/sprout/Controllers/Admin/HasCategoriesAdminController.php   Highlighted file source

Line 41: abstract class HasCategoriesAdminController extends ManagedAdminController {

/sprout/Controllers/Admin/ListAdminController.php   Highlighted file source

Line 36: abstract class ListAdminController extends ManagedAdminController {

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 56: abstract class ManagedAdminController extends Controller {

/sprout/Controllers/Admin/NoRecordsAdminController.php   Highlighted file source

Line 20: abstract class NoRecordsAdminController extends ManagedAdminController

/sprout/Controllers/Admin/PerRecordPermissionAdminController.php   Highlighted file source

Line 106: * @return array Contains elements 'title' and 'content' as per {@see ManagedAdminController::_getContents}

/sprout/Controllers/Admin/TreeAdminController.php   Highlighted file source

Line 42: abstract class TreeAdminController extends ManagedAdminController {

/sprout/Controllers/AdminController.php   Highlighted file source

Line 25: use Sprout\Controllers\Admin\ManagedAdminController;
Line 791: * @param ManagedAdminController $ctlr A controller to show the navigation of.
Line 793: private function error($message, ManagedAdminController $ctlr = null)
Line 819: * @param ManagedAdminController $ctlr A controller to check
Line 824: private function checkAccess(ManagedAdminController $ctlr, $access_flag, $action)
Line 866: * @param ManagedAdminController $ctlr The controller which manages the table containing the record
Line 870: function checkRecordAccess(ManagedAdminController $ctlr, $item_id)
Line 895: * @param ManagedAdminController $ctlr
Line 897: private function cleanupCommonPostData(ManagedAdminController $ctlr)
Line 965: * @param string ManagedAdminController $ctlr The controller to check permissions for
Line 969: protected function perRecordPermissionsFields(ManagedAdminController $ctlr, $item_id)
Line 1864: * class BookingAdminController extends ManagedAdminController {
Line 1871: * @param string $type The class name of the method to call (must extend ManagedAdminController)
Line 1937: if (!$ctlr or !($ctlr instanceof ManagedAdminController)) {

/sprout/Controllers/Controller.php   Highlighted file source

Line 24: use Sprout\Controllers\Admin\ManagedAdminController;
Line 375: if ($this instanceof ManagedAdminController) {
Line 402: if ($this instanceof ManagedAdminController) {
Line 545: if ($this instanceof ManagedAdminController) {

/sprout/Helpers/Admin.php   Highlighted file source

Line 991: * @return ManagedAdminController
Line 1015: 'Sprout\\Controllers\\Admin\\ManagedAdminController'

/sprout/Helpers/ColModifier.php   Highlighted file source

Line 19: * e.g. in {@see ManagedAdminController::_getContents}

/sprout/Helpers/Itemlist.php   Highlighted file source

Line 24: * UI to operators for a given {@see ManagedAdminController}

/sprout/Helpers/JsonForm.php   Highlighted file source

Line 23: * A generic implementation which should work for most cases is found in {@see ManagedAdminController::_getEditForm}

/sprout/Helpers/PerRecordPerms.php   Highlighted file source

Line 16: use Sprout\Controllers\Admin\ManagedAdminController;
Line 28: * @param ManagedAdminController $ctlr The controller to check
Line 31: public static function controllerRestricted(ManagedAdminController $ctlr)
Line 43: * @param ManagedAdminController $ctlr The controller to check
Line 46: public static function hasRecordPerms(ManagedAdminController $ctlr)
Line 78: * @param ManagedAdminController $ctlr Admin controller for the record in question
Line 85: public static function fetchDetails(ManagedAdminController $ctlr, $item_id)
Line 105: * @param ManagedAdminController $ctlr Admin controller for the record in question
Line 109: public static function save(ManagedAdminController $ctlr, $item_id)

/sprout/Helpers/Preview.php   Highlighted file source

Line 18: use Sprout\Controllers\Admin\ManagedAdminController;
Line 33: * @param ManagedAdminController $ctlr The controller with the preview method
Line 45: public static function load(ManagedAdminController $ctlr, array $tables, $record_id = 0)

A total of 47 lines in 19 files were found

Tags:   module-api   api