Form/Field/SimpleAbstract.php

Classes 
package
Form
Classes
Kwf_Form_Field_SimpleAbstract

Description

Base class for form fields that represent a textual value

\Kwf_Form_Field_SimpleAbstract

Extends from
\Kwf_Form_Field_Abstract
package
Form
Methods
__construct
_addValidators
_getTrlProperties
_getValueFromPostData
_getValueToSaveFromPostData
_processLoaded
getMetaData
getValueFromPostData
load
prepareSave
setAllowBlank
setBlankText
setComment
setDefaultValue
setEmptyMessage
validate

Description

Base class for form fields that represent a textual value

Methods

__construct

__construct(  $fieldName = null,  $fieldLabel = null ) :

Zeigt mehrere Checkboxes an und speichert diese in einer Relationstabelle

Arguments
$fieldName
$fieldLabel
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

_getTrlProperties

_getTrlProperties( ) :
Details
visibility
protected
final
false
static
false

_getValueFromPostData

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

_getValueToSaveFromPostData

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

_processLoaded

_processLoaded(  $value ) :
Arguments
$value
Details
visibility
protected
final
false
static
false

getMetaData

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

getValueFromPostData

getValueFromPostData(  $postData ) :
Arguments
$postData
Details
visibility
public
final
true
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

setAllowBlank

setAllowBlank(  $value ) :

Set weather this field is allowed to be blank when submitting the form

defaults to true

Arguments
$value
bool
Details
visibility
public
final
false
static
false

setBlankText

setBlankText(  $value ) :

Error text to display if the allow blank validation fails (defaults to "This field is required")

Arguments
$value
string
Details
visibility
public
final
false
static
false
see
setAllowBlank

setComment

setComment(  $value ) :

Set a comment displayed right to the form field

Arguments
$value
string
Details
visibility
public
final
false
static
false

setDefaultValue

setDefaultValue(  $value ) :

Set the default value for this field used when adding a new entry

Arguments
$value
Details
visibility
public
final
false
static
false

setEmptyMessage

setEmptyMessage(  $value ) :

Arguments
$value
Details
visibility
public
final
false
static
false
deprecated
internal

validate

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