GroupedBindings implements Traversable, Iterator
Stores and manages bindings between owner types and their IDs in an array.
Table of Contents
Interfaces
- Traversable
- Iterator
Methods
- add() : void
- Adds a new binding to the array with the given owner type ID and owner ID.
- current() : array<string|int, mixed>|false
- get() : array<string|int, int>
- Returns an array of owner IDs for the given owner type ID.
- key() : int|null
- next() : void
- rewind() : void
- valid() : bool
Methods
add()
Adds a new binding to the array with the given owner type ID and owner ID.
public
add(int $ownerTypeId, int $ownerId, int $activityId) : void
Parameters
- $ownerTypeId : int
-
The ID of the owner type.
- $ownerId : int
-
The ID of the owner.
- $activityId : int
current()
public
current() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|falseget()
Returns an array of owner IDs for the given owner type ID.
public
get(int $ownerTypeId) : array<string|int, int>
Parameters
- $ownerTypeId : int
-
The ID of the owner type.
Return values
array<string|int, int> —The array of owner IDs.
key()
public
key() : int|null
Return values
int|nullnext()
public
next() : void
rewind()
public
rewind() : void
valid()
public
valid() : bool