\Dewdrop\Admin\PageFactoryCustom

A page factory to allow easy overriding of pages from other factories.

Summary

Methods
Properties
Constants
createPage()
listAvailablePages()
setComponent()
registerPage()
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

setComponent()

setComponent(\Dewdrop\Admin\Component\ComponentAbstract  $component) 

Provide the component for which the pages will be generated.

Parameters

\Dewdrop\Admin\Component\ComponentAbstract $component

registerPage()

registerPage(string  $name, string  $className) : $this

Register a new page with this factory.

Parameters

string $name
string $className

Returns

$this