ControllerAdminForm
extends ControllerForm
in component
A base class for form pages in admin back-end. Optional.
Table of Contents
Constants
- PAGE_ROUTE = ''
- PAGE_TEMPLATE = ''
- PARENT_ROUTE = ''
Properties
Methods
- __construct() : mixed
- index() : mixed
- addBreadcrumb() : mixed
- addTopMessage() : mixed
- copyByLanguages() : mixed
- disableRender() : mixed
- enableRender() : mixed
- getFields() : mixed
- getFieldsWithData() : mixed
- getFieldValues() : mixed
- getFieldWithData() : mixed
- getLanguageFieldsWithData() : mixed
- getPageUrlParams() : mixed
- getRecord() : mixed
- getRenderData() : mixed
- getRenderTemplate() : mixed
- getSession() : mixed
- getTopMessages() : mixed
- initFields() : mixed
- kamodel() : mixed
- loadAdminPageBlocks() : mixed
- loadCustomerPageBlocks() : mixed
- onLoad() : mixed
- render() : mixed
- setOutput() : mixed
- setSession() : mixed
- showPage() : mixed
- validate() : mixed
- validateField() : mixed
- validateFields() : mixed
- validateLanguageFields() : mixed
- validateModify() : mixed
Constants
PAGE_ROUTE
public
mixed
PAGE_ROUTE
= ''
PAGE_TEMPLATE
public
mixed
PAGE_TEMPLATE
= ''
PARENT_ROUTE
public
mixed
PARENT_ROUTE
= ''
Properties
$children
protected
mixed
$children
= array()
$data
protected
mixed
$data
= array()
$errors
protected
mixed
$errors
= array()
$fields
protected
mixed
$fields
$kadb
Earlier it was used as alternative to the standard db class. Latest 'Ka Extensions' library intends to move all extended DB functions to the standard DB class.
protected
mixed
$kadb
= null
$pagination
protected
mixed
$pagination
$recordset
protected
mixed
$recordset
$template
protected
mixed
$template
= ''
$url_params
protected
mixed
$url_params
Methods
__construct()
public
__construct(mixed $registry) : mixed
Parameters
- $registry : mixed
index()
public
index() : mixed
addBreadcrumb()
protected
addBreadcrumb(mixed $text[, mixed $href = '' ]) : mixed
Parameters
- $text : mixed
- $href : mixed = ''
addTopMessage()
protected
addTopMessage(mixed $msg[, mixed $type = 'I' ]) : mixed
Parameters
- $msg : mixed
- $type : mixed = 'I'
copyByLanguages()
protected
copyByLanguages(mixed $fields[, mixed $name_pattern = null ]) : mixed
Parameters
- $fields : mixed
- $name_pattern : mixed = null
disableRender()
protected
disableRender([mixed $templates = null ]) : mixed
Parameters
- $templates : mixed = null
enableRender()
protected
enableRender() : mixed
getFields()
protected
getFields() : mixed
getFieldsWithData()
protected
getFieldsWithData(mixed $fields, mixed $old_data[, mixed $new_data = null ][, mixed $errors = array() ]) : mixed
Parameters
- $fields : mixed
- $old_data : mixed
- $new_data : mixed = null
- $errors : mixed = array()
getFieldValues()
protected
getFieldValues(mixed $fields) : mixed
Parameters
- $fields : mixed
getFieldWithData()
protected
getFieldWithData(mixed $k, mixed $f, mixed $old_data[, mixed $new_data = null ]) : mixed
Parameters
- $k : mixed
- $f : mixed
- $old_data : mixed
- $new_data : mixed = null
getLanguageFieldsWithData()
protected
getLanguageFieldsWithData(mixed $lang_group, mixed $lang_fields, mixed $lang_old_data[, mixed $lang_new_data = null ][, mixed $errors = array() ]) : mixed
Parameters
- $lang_group : mixed
- $lang_fields : mixed
- $lang_old_data : mixed
- $lang_new_data : mixed = null
- $errors : mixed = array()
getPageUrlParams()
protected
getPageUrlParams() : mixed
getRecord()
protected
getRecord() : mixed
getRenderData()
protected
getRenderData() : mixed
getRenderTemplate()
protected
getRenderTemplate() : mixed
getSession()
protected
& getSession(mixed $key) : mixed
Parameters
- $key : mixed
getTopMessages()
protected
getTopMessages([mixed $clear = true ]) : mixed
Parameters
- $clear : mixed = true
initFields()
protected
initFields(mixed $fields) : mixed
Parameters
- $fields : mixed
kamodel()
protected
kamodel(mixed $model) : mixed
The function loads a model within the module namespace
Parameters
- $model : mixed
loadAdminPageBlocks()
protected
loadAdminPageBlocks() : mixed
loadCustomerPageBlocks()
protected
loadCustomerPageBlocks() : mixed
onLoad()
protected
onLoad() : mixed
render()
protected
render([mixed $tpl = '' ][, mixed $data = array() ]) : mixed
Parameters
- $tpl : mixed = ''
- $data : mixed = array()
setOutput()
protected
setOutput([mixed $param = null ]) : mixed
Use the native response->setOutput or $this->showPage()
Parameters
- $param : mixed = null
setSession()
protected
setSession(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed
showPage()
protected
showPage([mixed $page = '' ][, mixed $data = array() ]) : mixed
Parameters
- $page : mixed = ''
- $data : mixed = array()
validate()
protected
validate() : mixed
validateField()
protected
validateField(mixed $code, mixed $field, mixed $post) : mixed
Parameters
- $code : mixed
- $field : mixed
- $post : mixed
validateFields()
protected
validateFields(mixed $fields, mixed $post) : mixed
Parameters
- $fields : mixed
- $post : mixed
validateLanguageFields()
protected
validateLanguageFields(mixed $lang_group, mixed $lang_fields, mixed $lang_post) : mixed
Parameters
- $lang_group : mixed
- $lang_fields : mixed
- $lang_post : mixed
validateModify()
protected
validateModify() : mixed