FlightAwareApiCallList
extends ModelList
in package
Tags
Table of Contents
Properties
- $hashCode : int
- $hashCounter : int
- $ids : array<string|int, mixed>
- $loaded : string
- $objects : ArrayObject
- $position : int
- $select_options : array<string|int, mixed>
- $statement : IStatement
- $total_matches : int
- $unit_class : string
- $unit_class_instance : IModel
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- addGroupBy() : IQueryBuilder
- addOrderBy() : IQueryBuilder
- andHaving() : IQueryBuilder
- andWhere() : IQueryBuilder
- count() : int
- {@inheritdoc}
- current() : mixed
- {@inheritdoc}
- delete() : ModelList
- Deletes all the objects within this list
- each() : mixed
- Calls a method on each object within this list and returns a reference to this instance
- extends() : bool
- filter() : bool
- Filters the objects within this list by a set of respective fields and values.
- findAll() : ModelList
- first() : mixed
- getIds() : array<string|int, mixed>
- Gets an array of ids for all the objects that are within this list.
- getObjects() : ArrayObject
- Gets an instance of the ArrayObject set for this instance
- getReflection() : ReflectionClass
- getSelectOptions() : array<string|int, mixed>
- Creates and array from the set of objects that are within this list that represents a set of options that can be used in an HTML dropdown select field
- getStatement() : IStatement
- getTotalMatches() : int
- The total number of records / rows that were matched from the underlying query used to select items for this list
- getUnitClassInstance() : IModel
- Gets the instance of the unit class for this list class instance
- groupBy() : IQueryBuilder
- having() : IQueryBuilder
- isUnitClassAllowedAttribute() : bool
- Determines whether or not a provded value, as an attribute, is an allowed attribute of the unit class this list class corresponds with
- key() : mixed
- {@inheritdoc}
- limit() : ModelList
- next() : void
- {@inheritdoc}
- offsetExists() : bool
- {@inheritdoc}
- offsetGet() : mixed
- {@inheritdoc}
- offsetSet() : void
- {@inheritdoc}
- offsetUnset() : void
- {@inheritdoc}
- orderBy() : IQueryBuilder
- orHaving() : IQueryBuilder
- orWhere() : IQueryBuilder
- rewind() : void
- {@inheritdoc}
- save() : ModelList
- Saves all the objects within this list
- valid() : bool
- {@inheritdoc}
- where() : IQueryBuilder
- init() : mixed
- append() : void
- Adds an additional object to this list
- determineUnitClass() : ModelList
- getObjectsFromStatement() : void
- getUnitClass() : string
- Gets the unit class for this class / instance
- setTotalMatches() : mixed
Properties
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$ids
private
array<string|int, mixed>
$ids
= []
$loaded
private
string
$loaded
= false
$objects
private
ArrayObject
$objects
$position
private
int
$position
= 0
$select_options
private
array<string|int, mixed>
$select_options
$statement
private
IStatement
$statement
$total_matches
private
int
$total_matches
= 0
$unit_class
private
string
$unit_class
$unit_class_instance
private
IModel
$unit_class_instance
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
addGroupBy()
public
addGroupBy(array<string|int, mixed> $group_by) : IQueryBuilder
Parameters
- $group_by : array<string|int, mixed>
Tags
Return values
IQueryBuilderaddOrderBy()
public
addOrderBy(mixed $expression[, mixed $order = IOrderByClause::ORDER_ASC ]) : IQueryBuilder
Parameters
- $expression : mixed
- $order : mixed = IOrderByClause::ORDER_ASC
Tags
Return values
IQueryBuilderandHaving()
public
andHaving(mixed $having) : IQueryBuilder
Parameters
- $having : mixed
Tags
Return values
IQueryBuilderandWhere()
public
andWhere(mixed $where) : IQueryBuilder
Parameters
- $where : mixed
Tags
Return values
IQueryBuildercount()
{@inheritdoc}
public
count() : int
Tags
Return values
intcurrent()
{@inheritdoc}
public
current() : mixed
Tags
delete()
Deletes all the objects within this list
public
delete() : ModelList
Return values
ModelList —The instance of this model list for method chaining, unless an exception is thrown within the process
each()
Calls a method on each object within this list and returns a reference to this instance
public
each(callable $function) : mixed
Parameters
- $function : callable
-
This method will always return true in the case that an exception is not thrown in the process.
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolfilter()
Filters the objects within this list by a set of respective fields and values.
public
filter(mixed $field, mixed $value) : bool
Parameters
- $field : mixed
-
The field or fields to filter the objects by
- $value : mixed
-
The value or values for the specified fields / attributes to filter this objects of the list by
Return values
bool —False if the $field or $value params are empty true otherwise
findAll()
public
findAll() : ModelList
Return values
ModelList —A reference to this instance
first()
public
first() : mixed
getIds()
Gets an array of ids for all the objects that are within this list.
public
getIds() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The ids of the objects that are within this list.
getObjects()
Gets an instance of the ArrayObject set for this instance
public
getObjects() : ArrayObject
Return values
ArrayObject —The ArrayObject set of items loaded for this instance
getReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetSelectOptions()
Creates and array from the set of objects that are within this list that represents a set of options that can be used in an HTML dropdown select field
public
getSelectOptions() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array of options with the ids of the objects as keys and either title title, name or label attribute of the objects as values.
getStatement()
public
getStatement() : IStatement
Return values
IStatementgetTotalMatches()
The total number of records / rows that were matched from the underlying query used to select items for this list
public
getTotalMatches() : int
Tags
Return values
int —The total number of items that were matched
getUnitClassInstance()
Gets the instance of the unit class for this list class instance
public
getUnitClassInstance() : IModel
Return values
IModel —A reference to the instance of the unit class instance for this list class
groupBy()
public
groupBy(array<string|int, mixed> $group_by) : IQueryBuilder
Parameters
- $group_by : array<string|int, mixed>
Tags
Return values
IQueryBuilderhaving()
public
having(mixed $having) : IQueryBuilder
Parameters
- $having : mixed
Tags
Return values
IQueryBuilderisUnitClassAllowedAttribute()
Determines whether or not a provded value, as an attribute, is an allowed attribute of the unit class this list class corresponds with
public
isUnitClassAllowedAttribute(mixed $attribute) : bool
Parameters
- $attribute : mixed
Return values
bool —TRUE if the atribute is an allowed attribute of the unit class, FALSE otherwise
key()
{@inheritdoc}
public
key() : mixed
Tags
limit()
public
limit(int|array<string|int, mixed> $limit) : ModelList
Parameters
- $limit : int|array<string|int, mixed>
Return values
ModelListnext()
{@inheritdoc}
public
next() : void
Tags
offsetExists()
{@inheritdoc}
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Tags
Return values
booloffsetGet()
{@inheritdoc}
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
offsetSet()
{@inheritdoc}
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Tags
offsetUnset()
{@inheritdoc}
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
Tags
orderBy()
public
orderBy(mixed $expression[, mixed $order = IOrderByClause::ORDER_ASC ]) : IQueryBuilder
Parameters
- $expression : mixed
- $order : mixed = IOrderByClause::ORDER_ASC
Tags
Return values
IQueryBuilderorHaving()
public
orHaving(mixed $having) : IQueryBuilder
Parameters
- $having : mixed
Tags
Return values
IQueryBuilderorWhere()
public
orWhere(mixed $where) : IQueryBuilder
Parameters
- $where : mixed
Tags
Return values
IQueryBuilderrewind()
{@inheritdoc}
public
rewind() : void
Tags
save()
Saves all the objects within this list
public
save() : ModelList
Return values
ModelList —The instance of this model list for method chaining, unless an exception is thrown within the process
valid()
{@inheritdoc}
public
valid() : bool
Tags
Return values
boolwhere()
public
where(mixed $where) : IQueryBuilder
Parameters
- $where : mixed
Tags
Return values
IQueryBuilderinit()
protected
init() : mixed
append()
Adds an additional object to this list
private
append(IModel $model) : void
Parameters
- $model : IModel
Tags
determineUnitClass()
private
determineUnitClass() : ModelList
Tags
Return values
ModelListgetObjectsFromStatement()
private
getObjectsFromStatement() : void
getUnitClass()
Gets the unit class for this class / instance
private
getUnitClass() : string
Return values
string —$unit_class The unit class for this class / instance
setTotalMatches()
private
setTotalMatches(int $total_matches) : mixed
Parameters
- $total_matches : int