PHP 클래스 IdiormResultSet, idiorm

저자: Simon Holywell ([email protected])
상속: implements Countable, implements IteratorAggregate, implements ArrayAccess, implements Serializable
파일 보기 프로젝트 열기: j4mie/idiorm

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

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