SectionMap
extends Map
Table of Contents
Methods
-
__construct()
: mixed
-
add()
: self
-
addItems()
: self
-
count()
: int
-
fetch()
: Section
-
getCollection()
: array<string|int, Section>
-
getItem()
: Section
-
getItemsByKeys()
: self
-
getIterator()
: ArrayIterator
-
has()
: bool
-
remove()
: $this
-
rewindGenerator()
: void
-
updateItem()
: self
__construct()
public
__construct([array<string|int, mixed> $collection = [] ]) : mixed
Parameters
-
$collection
: array<string|int, mixed>
= []
-
add()
public
add(Section $item[, mixed $key = = 'null' ]) : self
Parameters
-
$item
: Section
-
-
$key
: mixed
= = 'null'
-
addItems()
public
addItems(array<string|int, mixed> $items) : self
Parameters
-
$items
: array<string|int, mixed>
-
count()
public
count() : int
fetch()
public
fetch() : Section
getCollection()
public
getCollection() : array<string|int, Section>
Return values
array<string|int, Section>
getItem()
public
getItem(mixed $key) : Section
Parameters
-
$key
: mixed
-
getItemsByKeys()
public
getItemsByKeys(array<string|int, mixed> $key) : self
Parameters
-
$key
: array<string|int, mixed>
-
getIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIterator
has()
public
has(mixed $key) : bool
Parameters
-
$key
: mixed
-
remove()
public
remove(mixed $key) : $this
Parameters
-
$key
: mixed
-
rewindGenerator()
public
rewindGenerator() : void
updateItem()
public
updateItem(Section $item, mixed $key) : self
Parameters
-
$item
: Section
-
-
$key
: mixed
-