FactoriesCollection
extends Collection
Table of Contents
Methods
-
__construct()
: mixed
-
add()
: $this
-
addItems()
: $this
-
count()
: int
-
createByConnection()
: FactoriesCollection
-
createByEvent()
: mixed
-
createBySection()
: FactoriesCollection
-
createBySectionId()
: FactoriesCollection
-
createByUserId()
: FactoriesCollection
-
fetch()
: mixed
-
getCollection()
: array<string|int, mixed>
-
getIterator()
: ArrayIterator
-
remove()
: $this
-
rewindGenerator()
: void
__construct()
public
__construct([array<string|int, mixed> $collection = [] ]) : mixed
Parameters
-
$collection
: array<string|int, mixed>
= []
-
add()
public
add(mixed $item) : $this
Parameters
-
$item
: mixed
-
addItems()
public
addItems(array<string|int, mixed> $items) : $this
Parameters
-
$items
: array<string|int, mixed>
-
count()
public
count() : int
createByConnection()
public
static createByConnection(Connection $connection) : FactoriesCollection
Parameters
-
$connection
: Connection
-
createByEvent()
public
static createByEvent(Event $event[, array<string|int, mixed> $availableService = null ]) : mixed
Parameters
-
$event
: Event
-
-
$availableService
: array<string|int, mixed>
= null
-
-
throws
-
ArgumentException
-
throws
-
ObjectException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
createBySection()
public
static createBySection(Section $section) : FactoriesCollection
Parameters
-
$section
: Section
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
LoaderException
createBySectionId()
public
static createBySectionId(Section $section[, array<string|int, mixed> $availableService = null ]) : FactoriesCollection
Parameters
-
$section
: Section
-
-
$availableService
: array<string|int, mixed>
= null
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
LoaderException
createByUserId()
public
static createByUserId(int $userId[, array<string|int, mixed> $availableService = [] ]) : FactoriesCollection
Parameters
-
$userId
: int
-
-
$availableService
: array<string|int, mixed>
= []
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
LoaderException
fetch()
public
fetch() : mixed
-
throws
-
BaseException
getCollection()
public
getCollection() : array<string|int, mixed>
Return values
array<string|int, mixed>
getIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIterator
remove()
public
remove(mixed $key) : $this
Parameters
-
$key
: mixed
-
rewindGenerator()
public
rewindGenerator() : void