ModelRecordset
extends Model
in component
AbstractYes
Implements a standard interface for managing sql records
The class provides several functions for inserting, updating and getting data from the database. It is easier for other modules to overwrite methods of that class to extend or restrict the module functionality.
Table of Contents
Constants
- TABLE_ALIAS = 't'
Properties
Methods
- __construct() : mixed
- __get() : mixed
- addRecord() : mixed
- delete() : mixed
- deleteRecord() : mixed
- editRecord() : mixed
- fillRecord() : mixed
- getFields() : mixed
- getLastError() : mixed
- getPrimaryField() : mixed
- getPrimaryFields() : mixed
- getRecord() : mixed
- getRecords() : mixed
- getRecordsTotal() : mixed
- saveRecord() : mixed
- getNamespace() : mixed
- getRecordQB() : mixed
- getRecordsQB() : mixed
- getSession() : mixed
- kamodel() : mixed
- onLoad() : mixed
- All required models can be loaded here
- setSession() : mixed
Constants
TABLE_ALIAS
public
mixed
TABLE_ALIAS
= 't'
Properties
$lastError
protected
mixed
$lastError
$primary_fields
protected
mixed
$primary_fields
$table_class
protected
mixed
$table_class
$table_name
protected
mixed
$table_name
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
addRecord()
public
addRecord(mixed $data) : mixed
Parameters
- $data : mixed
delete()
public
delete(mixed $where) : mixed
Parameters
- $where : mixed
deleteRecord()
public
deleteRecord(mixed $key_values) : mixed
Parameters
- $key_values : mixed
editRecord()
public
editRecord(mixed $data) : mixed
Parameters
- $data : mixed
fillRecord()
public
fillRecord([mixed $record = [] ]) : mixed
Parameters
- $record : mixed = []
getFields()
public
getFields() : mixed
getLastError()
public
getLastError() : mixed
getPrimaryField()
public
getPrimaryField() : mixed
getPrimaryFields()
public
getPrimaryFields() : mixed
getRecord()
public
getRecord(mixed $primary_fields) : mixed
Parameters
- $primary_fields : mixed
getRecords()
public
getRecords([mixed $data = array() ]) : mixed
Parameters
- $data : mixed = array()
getRecordsTotal()
public
getRecordsTotal([mixed $data = array() ]) : mixed
Parameters
- $data : mixed = array()
saveRecord()
public
saveRecord(mixed $record) : mixed
Parameters
- $record : mixed
getNamespace()
protected
getNamespace() : mixed
getRecordQB()
protected
getRecordQB(mixed $data) : mixed
Parameters
- $data : mixed
getRecordsQB()
protected
getRecordsQB([mixed $data = array() ]) : mixed
Parameters
- $data : mixed = array()
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