Form/Field/MultiCheckbox.php

Classes 
package
Form
Classes
Kwf_Form_Field_MultiCheckbox

Description

TODO: validators

\Kwf_Form_Field_MultiCheckbox

Extends from
\Kwf_Form_Field_Abstract
package
Form
Properties
$_fields
$_pool
Methods
__construct
_getFields
_getIdsFromPostData
_getTrlProperties
getChildren
getDataModel
getMetaData
getPool
getRelModel
getTemplateVars
getValuesModel
getValuesSelect
hasChildren
load
prepareSave
setDataModel
setPool
setRelModel
setRelationToData
setValuesBoxLabelField
setValuesModel
setValuesSelect
validate

Description

TODO: validators

Properties

$_fields

 $_fields = ''

Details

visibility
protected
default
final
false
static
false

$_pool

 $_pool = 'null'

Details

visibility
protected
default
null
final
false
static
false
see
setPool()

Methods

__construct

__construct( string|\Kwf_Model_Abstract $dependetModelRule, string $relationToValuesRule,  $title = null ) :

Zeigt mehrere Checkboxes an und speichert diese in einer Relationstabelle

Arguments
$dependetModelRule
string\Kwf_Model_Abstract
Kann folgendes sein: - Die rule vom Datenmodel zur Relationstabelle (string) - oder das RelationsModel selbst (Kwf_Model_Abstract)
$relationToValuesRule
string
Die rule vom Relationsmodel zum Values-model
$title
Details
visibility
public
final
false
static
false

_getFields

_getFields( ) :
Details
visibility
protected
final
false
static
false

_getIdsFromPostData

_getIdsFromPostData(  $postData ) :
Arguments
$postData
Details
visibility
protected
final
false
static
false

_getTrlProperties

_getTrlProperties( ) :
Details
visibility
protected
final
false
static
false

getChildren

getChildren( ) :
Details
visibility
public
final
false
static
false

getDataModel

getDataModel( ) :
Details
visibility
public
final
false
static
false

getMetaData

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

getPool

getPool( ) :
Details
visibility
public
final
false
static
false

getRelModel

getRelModel( ) :
Details
visibility
public
final
false
static
false

getTemplateVars

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

getValuesModel

getValuesModel( ) :
Details
visibility
public
final
false
static
false

getValuesSelect

getValuesSelect( ) :
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

setDataModel

setDataModel(  $dataModel ) :
Arguments
$dataModel
Details
visibility
public
final
false
static
false

setPool

setPool(  $pool ) :
Arguments
$pool
Details
visibility
public
final
false
static
false

setRelModel

setRelModel(  $relModel ) :
Arguments
$relModel
Details
visibility
public
final
false
static
false

setRelationToData

setRelationToData(  $rel ) :
Arguments
$rel
Details
visibility
public
final
false
static
false

setValuesBoxLabelField

setValuesBoxLabelField( string $value ) : \Kwf_Form_Field_MultiCheckbox

Set the field from ValuesModel that will be used as box label

if not set __toString() will be used

Arguments
$value
string
field name
Details
visibility
public
final
false
static
false
fluent
This method is part of a fluent interface and will return the same instance

setValuesModel

setValuesModel(  $valModel ) :
Arguments
$valModel
Details
visibility
public
final
false
static
false

setValuesSelect

setValuesSelect(  $select ) :
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.