\Phile\RepositoryPageCollection

Page collection which delays searching for and loading pages until necessary.

Summary

Methods
Properties
Constants
__construct()
toArray()
getIterator()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
count()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
load()
$loader
$pages
N/A

Properties

$loader

$loader :callable

Type

callable—A function to be used for loading the pages.

$pages

$pages :array

Type

array—of \Phile\Model\Page

Methods

__construct()

__construct(callable  $loader)

Constructor.

Parameters

callable $loader

pages loader

toArray()

toArray(): array

Get pages in a array.

Returns

array —

of \Phile\Model\Page

getIterator()

getIterator()

offsetExists()

offsetExists(  $offset)

Parameters

$offset

offsetGet()

offsetGet(  $offset)

Parameters

$offset

offsetSet()

offsetSet(  $offset,  $value)

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset)

Parameters

$offset

count()

count()

load()

load(): void

Perform page loading.