Iterator
extends Model
in component
implements
Iterator
AbstractYes
Gives the ability to use an interator through unlimited sql records.
Table of Contents
Interfaces
- Iterator
Properties
Methods
- __construct() : mixed
- __get() : mixed
- current() : mixed
- getLastError() : mixed
- isEmpty() : mixed
- isEnd() : mixed
- key() : mixed
- next() : mixed
- rewind() : mixed
- setLimits() : mixed
- valid() : mixed
- defineQuery() : mixed
- fetchData() : mixed
- getNamespace() : mixed
- getSession() : mixed
- kamodel() : mixed
- onLoad() : mixed
- All required models can be loaded here
- setSession() : mixed
Properties
$from
protected
mixed
$from
= 0
$ids
protected
mixed
$ids
= array()
$is_end
protected
mixed
$is_end
= false
$lastError
protected
mixed
$lastError
$limit_from
protected
mixed
$limit_from
= 0
$limit_to
protected
mixed
$limit_to
= false
$position
protected
mixed
$position
= 0
$query
protected
mixed
$query
= ''
$range_size
protected
mixed
$range_size
= 100
$to
protected
mixed
$to
= 0
Methods
__construct()
public
__construct(mixed $registry) : mixed
Parameters
- $registry : mixed
__get()
public
__get(mixed $key) : mixed
Do not use magic prefixes like 'tbl_', 'kamodel_' and 'model_'. They do not work transparent in ancestors.
Parameters
- $key : mixed
current()
public
current() : mixed
Attributes
- #[ReturnTypeWillChange]
getLastError()
public
getLastError() : mixed
isEmpty()
public
isEmpty() : mixed
isEnd()
public
isEnd() : mixed
key()
public
key() : mixed
Attributes
- #[ReturnTypeWillChange]
next()
public
next() : mixed
Attributes
- #[ReturnTypeWillChange]
rewind()
public
rewind() : mixed
Attributes
- #[ReturnTypeWillChange]
setLimits()
public
setLimits([mixed $from = 0 ][, mixed $range_size = false ]) : mixed
Parameters
- $from : mixed = 0
- $range_size : mixed = false
valid()
public
valid() : mixed
Attributes
- #[ReturnTypeWillChange]
defineQuery()
protected
abstract defineQuery() : mixed
fetchData()
protected
fetchData(mixed $from) : mixed
Parameters
- $from : mixed
getNamespace()
protected
getNamespace() : mixed
getSession()
protected
& getSession(mixed $key) : mixed
Parameters
- $key : mixed
kamodel()
protected
kamodel(mixed $model) : mixed
Parameters
- $model : mixed
onLoad()
All required models can be loaded here
protected
onLoad() : mixed
setSession()
protected
setSession(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed