PHP Class IdiormResultSet, idiorm

Author: Simon Holywell ([email protected])
Inheritance: implements Countable, implements IteratorAggregate, implements ArrayAccess, implements Serializable
Afficher le fichier Open project: j4mie/idiorm

Protected Properties

Свойство Type Description
$_results array The current result set as an array

Méthodes publiques

Méthode Description
__call ( string $method, array $params = [] ) : IdiormResultSet Call a method on all models in a result set. This allows for method chaining such as setting a property on all models in a result set or any other batch operation across models.
__construct ( array $results = [] ) Optionally set the contents of the result set by passing in array
as_array ( ) : array Get the current result set as an array
count ( ) : integer Get the number of records in the result set
getIterator ( ) : ArrayIterator Get an iterator for this object. In this case it supports foreaching over the result set.
get_results ( ) : array Get the current result set as an array
offsetExists ( integer | string $offset ) : boolean ArrayAccess
offsetGet ( integer | string $offset ) : mixed ArrayAccess
offsetSet ( integer | string $offset, mixed $value ) ArrayAccess
offsetUnset ( integer | string $offset ) ArrayAccess
serialize ( ) : string Serializable
set_results ( array $results ) Set the contents of the result set by passing in array
unserialize ( string $serialized ) : array Serializable

Method Details

__call() public méthode

Call a method on all models in a result set. This allows for method chaining such as setting a property on all models in a result set or any other batch operation across models.
public __call ( string $method, array $params = [] ) : IdiormResultSet
$method string
$params array
Résultat IdiormResultSet

__construct() public méthode

Optionally set the contents of the result set by passing in array
public __construct ( array $results = [] )
$results array

as_array() public méthode

Get the current result set as an array
public as_array ( ) : array
Résultat array

count() public méthode

Get the number of records in the result set
public count ( ) : integer
Résultat integer

getIterator() public méthode

Get an iterator for this object. In this case it supports foreaching over the result set.
public getIterator ( ) : ArrayIterator
Résultat ArrayIterator

get_results() public méthode

Get the current result set as an array
public get_results ( ) : array
Résultat array

offsetExists() public méthode

ArrayAccess
public offsetExists ( integer | string $offset ) : boolean
$offset integer | string
Résultat boolean

offsetGet() public méthode

ArrayAccess
public offsetGet ( integer | string $offset ) : mixed
$offset integer | string
Résultat mixed

offsetSet() public méthode

ArrayAccess
public offsetSet ( integer | string $offset, mixed $value )
$offset integer | string
$value mixed

offsetUnset() public méthode

ArrayAccess
public offsetUnset ( integer | string $offset )
$offset integer | string

serialize() public méthode

Serializable
public serialize ( ) : string
Résultat string

set_results() public méthode

Set the contents of the result set by passing in array
public set_results ( array $results )
$results array

unserialize() public méthode

Serializable
public unserialize ( string $serialized ) : array
$serialized string
Résultat array

Property Details

$_results protected_oe property

The current result set as an array
protected array $_results
Résultat array