\Dewdrop\Admin\PageFactoryCrud

Page factory for CRUD-capable components. Provides a lot of CRUD functionality without the need for per-component page files. You can override any of these pages by adding a file to your component (see Files page factory) and can disable some of the provided functionality via your component's permissions.

Summary

Methods
Properties
Constants
createPage()
listAvailablePages()
__construct()
No public properties found
No constants found
No protected methods found
$component
$pageClassMap
N/A
No private methods found
No private properties found
N/A

Properties

$pageClassMap

$pageClassMap : array

The map of URL names to page classes this factory serves.

Type

array

Methods

createPage()

createPage(string  $name) : \Dewdrop\Admin\Page\PageAbstract|false

Returns a page instance for the given name or false on failure

Parameters

string $name

Returns

\Dewdrop\Admin\Page\PageAbstract|false

listAvailablePages()

listAvailablePages() : array

List the pages this factory is capable of producing.

Returns

array

__construct()

__construct(\Dewdrop\Admin\Component\CrudInterface  $component) 

Provide the component for which the pages will be generated.

Parameters

\Dewdrop\Admin\Component\CrudInterface $component