Form/Field/MultiFields.php

Classes 
package
Form
Classes
Kwf_Form_Field_MultiFields

Description

\Kwf_Form_Field_MultiFields

Extends from
\Kwf_Form_Field_Abstract
package
Form
Properties
$fields
Methods
__construct
_addValidators
_getReferences
_getRowsByRow
getChildren
getMetaData
getModel
getReferenceName
getReferences
getSelect
getTemplateVars
hasChildren
load
prepareSave
processInput
save
setModel
setReferenceName
setReferences
setSelect
validate

Description

Base class for all form fields

Properties

$fields

\Kwf_Collection_FormFields $fields = ''

Details

\Kwf_Collection_FormFields
visibility
public
default
final
false
static
false

Methods

__construct

__construct(  $reference = null,  $fieldname = null ) :

Zeigt mehrere Checkboxes an und speichert diese in einer Relationstabelle

Arguments
$reference
$fieldname
Details
visibility
public
final
false
static
false

_addValidators

_addValidators( ) :

Add validators to the field here, called in prepareSave

Details
visibility
protected
final
false
static
false

_getReferences

_getReferences(  $row ) :
Arguments
$row
Details
visibility
protected
final
false
static
false

_getRowsByRow

_getRowsByRow(  $row ) :
Arguments
$row
Details
visibility
protected
final
false
static
false

getChildren

getChildren( ) :
Details
visibility
public
final
false
static
false

getMetaData

getMetaData(  $model ) :
Arguments
$model
Details
visibility
public
final
false
static
false

getModel

getModel( ) :
Details
visibility
public
final
false
static
false

getReferenceName

getReferenceName( ) :
Details
visibility
public
final
false
static
false

getReferences

getReferences( ) :
Details
visibility
public
final
false
static
false

getSelect

getSelect( ) :
Details
visibility
public
final
false
static
false

getTemplateVars

getTemplateVars(  $values,  $namePostfix,  $idPrefix ) :
Arguments
$values
$namePostfix
$idPrefix
Details
visibility
public
final
false
static
false

hasChildren

hasChildren( ) :
Details
visibility
public
final
false
static
false

load

load(  $row,  $postData = array ) :
Arguments
$row
$postData
Details
visibility
public
final
false
static
false

prepareSave

prepareSave(  $row,  $postData ) :
Arguments
$row
$postData
Details
visibility
public
final
false
static
false

processInput

processInput(  $row,  $postData ) :
Arguments
$row
$postData
Details
visibility
public
final
false
static
false

save

save(  $row,  $postData ) :
Arguments
$row
$postData
Details
visibility
public
final
false
static
false

setModel

setModel(  $model ) :

Set model in which child rows are saved.

Normally automatically set by using the reference passed in constructor

Arguments
$model
Kwf_Model_Interface
Details
visibility
public
final
false
static
false

setReferenceName

setReferenceName(  $name ) :

Set reference of MultiFields model from parent model

Normally passed as first constructor argument

Arguments
$name
string
Details
visibility
public
final
false
static
false

setReferences

setReferences(  $select ) :

Manually set references required for model

Normally automatically read from Model references

Arguments
$select
Details
visibility
public
final
false
static
false

setSelect

setSelect(  $select ) :

Set select used for getting available rows

If not set all rows are used

Arguments
$select
Details
visibility
public
final
false
static
false

validate

validate(  $row,  $postData ) :
Arguments
$row
$postData
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.12.3.