PHP Класс IdiormResultSet, idiorm

Автор: Simon Holywell ([email protected])
Наследование: implements Countable, implements IteratorAggregate, implements ArrayAccess, implements Serializable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_results array The current result set as an array

Открытые методы

Метод Описание
__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

Описание методов

__call() публичный Метод

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
Результат IdiormResultSet

__construct() публичный Метод

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

as_array() публичный Метод

Get the current result set as an array
public as_array ( ) : array
Результат array

count() публичный Метод

Get the number of records in the result set
public count ( ) : integer
Результат integer

getIterator() публичный Метод

Get an iterator for this object. In this case it supports foreaching over the result set.
public getIterator ( ) : ArrayIterator
Результат ArrayIterator

get_results() публичный Метод

Get the current result set as an array
public get_results ( ) : array
Результат array

offsetExists() публичный Метод

ArrayAccess
public offsetExists ( integer | string $offset ) : boolean
$offset integer | string
Результат boolean

offsetGet() публичный Метод

ArrayAccess
public offsetGet ( integer | string $offset ) : mixed
$offset integer | string
Результат mixed

offsetSet() публичный Метод

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

offsetUnset() публичный Метод

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

serialize() публичный Метод

Serializable
public serialize ( ) : string
Результат string

set_results() публичный Метод

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

unserialize() публичный Метод

Serializable
public unserialize ( string $serialized ) : array
$serialized string
Результат array

Описание свойств

$_results защищенное свойство

The current result set as an array
protected array $_results
Результат array