PageCollection
extends BaseFoundationCollection
in package
FinalYes
The PageCollection contains all the instantiated pages.
Tags
Table of Contents
Properties
- $items : array<string, HydePage>
- $kernel : HydeKernel
Methods
- addPage() : void
- boot() : static
- get() : HydePage|null
- getPage() : HydePage
- getPages() : PageCollection
- init() : static
- __construct() : mixed
- parsePage() : HydePage
- runDiscovery() : void
- runExtensionHandlers() : void
- setKernel() : $this
Properties
$items
public
array<string, HydePage>
$items
The pages in the collection.
$kernel
protected
HydeKernel
$kernel
Methods
addPage()
public
addPage(HydePage $page) : void
Parameters
- $page : HydePage
boot()
public
final boot() : static
Return values
staticget()
public
get(string $key[, HydePage $default = = 'null' ]) : HydePage|null
Parameters
- $key : string
- $default : HydePage = = 'null'
Return values
HydePage|nullgetPage()
public
getPage(string $sourcePath) : HydePage
Parameters
- $sourcePath : string
Return values
HydePagegetPages()
public
getPages([HydePage>|null $pageClass = null ]) : PageCollection
Parameters
- $pageClass : HydePage>|null = null
Return values
PageCollectioninit()
public
static init(HydeKernel $kernel) : static
Parameters
- $kernel : HydeKernel
Return values
static__construct()
protected
final __construct([array<string|int, mixed>|Arrayable|null $items = [] ]) : mixed
Parameters
- $items : array<string|int, mixed>|Arrayable|null = []
parsePage()
protected
static parsePage(HydePage> $pageClass, string $path) : HydePage
Parameters
- $pageClass : HydePage>
- $path : string
Return values
HydePagerunDiscovery()
protected
runDiscovery() : void
runExtensionHandlers()
protected
runExtensionHandlers() : void
setKernel()
protected
setKernel(HydeKernel $kernel) : $this
Parameters
- $kernel : HydeKernel