Ka Extensions

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

$lastError

protected mixed $lastError

$limit_from

protected mixed $limit_from = 0

$limit_to

protected mixed $limit_to = false

$range_size

protected mixed $range_size = 100

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

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

        
On this page

Search results