Jelix 1.7.18

jFormsCompiler_jf_1_0
in package

generates form class from an xml file describing the form.

Tags
subpackage

forms

Table of Contents

NS  = 'http://jelix.org/ns/forms/1.0'
$allowedType  : mixed
$controlClasses  : mixed
$sourceFile  : mixed
__construct()  : mixed
compile()  : mixed
_compile()  : mixed
_generatePHPControl()  : mixed
attrDefaultvalue()  : mixed
attrReadOnly()  : mixed
attrRequired()  : mixed
attrSize()  : mixed
attrType()  : mixed
generateCheckbox()  : mixed
generateCheckboxes()  : mixed
generateInput()  : mixed
generateListbox()  : mixed
generateMenulist()  : mixed
generateOutput()  : mixed
generatePHPControl()  : mixed
generateRadiobuttons()  : mixed
generateReset()  : mixed
generateSecret()  : mixed
generateSubmit()  : mixed
generateTextarea()  : mixed
generateUpload()  : mixed
readDatasource()  : mixed
readEmptyValueLabel()  : mixed
readHelpHintAlert()  : mixed
readLabel()  : mixed
readSelectedValue()  : mixed

Constants

Properties

$allowedType

protected mixed $allowedType = array('string', 'boolean', 'decimal', 'integer', 'hexadecimal', 'datetime', 'date', 'time', 'localedatetime', 'localedate', 'localetime', 'url', 'email', 'ipv4', 'ipv6')

$controlClasses

protected static mixed $controlClasses = array('htmleditor' => 'jFormsControlHtmlEditor', 'wikieditor' => 'jFormsControlWikiEditor', 'secretconfirm' => 'jFormsControlSecretConfirm', 'image' => 'jFormsControlImageUpload')

Methods

compile()

public compile(mixed $doc, mixed &$source) : mixed
Parameters
$doc : mixed
$source : mixed
Return values
mixed

_compile()

protected _compile(mixed $xml, mixed &$source) : mixed
Parameters
$xml : mixed
$source : mixed
Return values
mixed

_generatePHPControl()

protected _generatePHPControl(mixed &$source, mixed $controltype, mixed $control) : mixed
Parameters
$source : mixed
$controltype : mixed
$control : mixed
Return values
mixed

attrDefaultvalue()

protected attrDefaultvalue(mixed &$source, mixed &$attributes) : mixed
Parameters
$source : mixed
$attributes : mixed
Return values
mixed

attrReadOnly()

protected attrReadOnly(mixed &$source, mixed &$attributes) : mixed
Parameters
$source : mixed
$attributes : mixed
Return values
mixed

attrRequired()

protected attrRequired(mixed &$source, mixed &$attributes) : mixed
Parameters
$source : mixed
$attributes : mixed
Return values
mixed

attrSize()

protected attrSize(mixed &$source, mixed &$attributes) : mixed
Parameters
$source : mixed
$attributes : mixed
Return values
mixed

attrType()

protected attrType(mixed &$source, mixed &$attributes) : mixed
Parameters
$source : mixed
$attributes : mixed
Return values
mixed

generateCheckbox()

protected generateCheckbox(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateCheckboxes()

protected generateCheckboxes(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateInput()

protected generateInput(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateListbox()

protected generateListbox(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateMenulist()

protected generateMenulist(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateOutput()

protected generateOutput(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generatePHPControl()

protected generatePHPControl(mixed $controltype, mixed $control) : mixed
Parameters
$controltype : mixed
$control : mixed
Return values
mixed

generateRadiobuttons()

protected generateRadiobuttons(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateReset()

protected generateReset(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateSecret()

protected generateSecret(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateSubmit()

protected generateSubmit(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateTextarea()

protected generateTextarea(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

generateUpload()

protected generateUpload(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : mixed
Return values
mixed

readDatasource()

protected readDatasource(mixed &$source, mixed $control, mixed $controltype, mixed &$attributes[, mixed $hasSelectedValues = false ]) : mixed
Parameters
$source : mixed
$control : mixed
$controltype : mixed
$attributes : mixed
$hasSelectedValues : mixed = false
Return values
mixed

readEmptyValueLabel()

protected readEmptyValueLabel(mixed &$source, mixed $control) : mixed
Parameters
$source : mixed
$control : mixed
Return values
mixed

readHelpHintAlert()

protected readHelpHintAlert(mixed &$source, mixed $control) : mixed
Parameters
$source : mixed
$control : mixed
Return values
mixed

readLabel()

protected readLabel(mixed &$source, mixed $control, mixed $controltype) : mixed
Parameters
$source : mixed
$control : mixed
$controltype : mixed
Return values
mixed

readSelectedValue()

protected readSelectedValue(mixed &$source, mixed $control, mixed $controltype, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$controltype : mixed
$attributes : mixed
Return values
mixed

Search results