PHP Class Formal\Form

Mostrar archivo Open project: jeromeschneider/baikal Class Usage Examples

Protected Properties

Property Type Description
$aErrors
$aOptions
$bPersisted
$oElements
$oModelInstance
$oMorpho # Displayed confirm message; generated in execute()
$sDisplayMessage # Displayed form title; generated in setModelInstance()
$sDisplayTitle # TRUE when form has persisted; available only after execute
$sModelClass

Public Methods

Method Description
__construct ( $sModelClass, $aOptions = [] )
declareError ( Element $oElement, $sMessage = "" ) # public, as it may be called from a hook
execute ( )
floatingModelInstance ( )
getMorpho ( )
modelInstance ( )
option ( $sName )
options ( )
persisted ( )
postValue ( $sPropName )
refreshed ( )
render ( )
setModelInstance ( $oModelInstance )
setOption ( $sName, $sValue )
submitted ( )
validateColor ( $sValue, Morphology $oMorpho, Element $oElement )
validateEmail ( $sValue, Morphology $oMorpho, Element $oElement )
validateRequired ( $sValue, Morphology $oMorpho, Element $oElement )
validateSameas ( $sValue, Morphology $oMorpho, Element $oElement, $sReferencePropName )
validateTokenid ( $sValue, Morphology $oMorpho, Element $oElement )
validateUnique ( $sValue, Morphology $oMorpho, Element $oElement )

Protected Methods

Method Description
submitSignatureName ( )

Method Details

__construct() public method

public __construct ( $sModelClass, $aOptions = [] )

declareError() public method

# public, as it may be called from a hook
public declareError ( Element $oElement, $sMessage = "" )
$oElement Element

execute() public method

public execute ( )

floatingModelInstance() public method

getMorpho() public method

public getMorpho ( )

modelInstance() public method

public modelInstance ( )

option() public method

public option ( $sName )

options() public method

public options ( )

persisted() public method

public persisted ( )

postValue() public method

public postValue ( $sPropName )

refreshed() public method

public refreshed ( )

render() public method

public render ( )

setModelInstance() public method

public setModelInstance ( $oModelInstance )

setOption() public method

public setOption ( $sName, $sValue )

submitSignatureName() protected method

protected submitSignatureName ( )

submitted() public method

public submitted ( )

validateColor() public method

public validateColor ( $sValue, Morphology $oMorpho, Element $oElement )
$oMorpho Formal\Form\Morphology
$oElement Element

validateEmail() public method

public validateEmail ( $sValue, Morphology $oMorpho, Element $oElement )
$oMorpho Formal\Form\Morphology
$oElement Element

validateRequired() public method

public validateRequired ( $sValue, Morphology $oMorpho, Element $oElement )
$oMorpho Formal\Form\Morphology
$oElement Element

validateSameas() public method

public validateSameas ( $sValue, Morphology $oMorpho, Element $oElement, $sReferencePropName )
$oMorpho Formal\Form\Morphology
$oElement Element

validateTokenid() public method

public validateTokenid ( $sValue, Morphology $oMorpho, Element $oElement )
$oMorpho Formal\Form\Morphology
$oElement Element

validateUnique() public method

public validateUnique ( $sValue, Morphology $oMorpho, Element $oElement )
$oMorpho Formal\Form\Morphology
$oElement Element

Property Details

$aErrors protected_oe property

protected $aErrors

$aOptions protected_oe property

protected $aOptions

$bPersisted protected_oe property

protected $bPersisted

$oElements protected_oe property

protected $oElements

$oModelInstance protected_oe property

protected $oModelInstance

$oMorpho protected_oe property

# Displayed confirm message; generated in execute()
protected $oMorpho

$sDisplayMessage protected_oe property

# Displayed form title; generated in setModelInstance()
protected $sDisplayMessage

$sDisplayTitle protected_oe property

# TRUE when form has persisted; available only after execute
protected $sDisplayTitle

$sModelClass protected_oe property

protected $sModelClass