PHP Class Formal\Form

Afficher le fichier Open project: jeromeschneider/baikal Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
submitSignatureName ( )

Method Details

__construct() public méthode

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

declareError() public méthode

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

execute() public méthode

public execute ( )

floatingModelInstance() public méthode

getMorpho() public méthode

public getMorpho ( )

modelInstance() public méthode

public modelInstance ( )

option() public méthode

public option ( $sName )

options() public méthode

public options ( )

persisted() public méthode

public persisted ( )

postValue() public méthode

public postValue ( $sPropName )

refreshed() public méthode

public refreshed ( )

render() public méthode

public render ( )

setModelInstance() public méthode

public setModelInstance ( $oModelInstance )

setOption() public méthode

public setOption ( $sName, $sValue )

submitSignatureName() protected méthode

protected submitSignatureName ( )

submitted() public méthode

public submitted ( )

validateColor() public méthode

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

validateEmail() public méthode

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

validateRequired() public méthode

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

validateSameas() public méthode

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

validateTokenid() public méthode

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

validateUnique() public méthode

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