Jelix 1.6.40

jFormsCompiler_jf_1_1 extends 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.1'
$allowedType  : mixed
$sourceFile  : mixed
__construct()  : mixed
compile()  : mixed
_compile()  : mixed
_generatePHPControl()  : mixed
_generateTextareaHtmlEditor()  : mixed
attrDefaultvalue()  : mixed
attrReadOnly()  : mixed
attrRequired()  : mixed
attrSize()  : mixed
attrType()  : mixed
generateButton()  : mixed
generateCaptcha()  : mixed
generateCheckbox()  : mixed
generateCheckboxes()  : mixed
generateChoice()  : mixed
generateDate()  : mixed
generateDatetime()  : mixed
generateGroup()  : mixed
generateHidden()  : mixed
generateHtmleditor()  : mixed
generateInput()  : mixed
generateListbox()  : mixed
generateMenulist()  : mixed
generateOutput()  : mixed
generatePHPControl()  : mixed
generateRadiobuttons()  : mixed
generateReset()  : mixed
generateSecret()  : mixed
generateSubmit()  : mixed
generateTextarea()  : mixed
generateTime()  : mixed
generateUpload()  : mixed
generateWikieditor()  : mixed
readChildControls()  : int
readDatasource()  : mixed
readEmptyValueLabel()  : mixed
readHelpHintAlert()  : mixed
readItem()  : mixed
readLabel()  : mixed
readOnCheckValue()  : mixed
readSelectedValue()  : mixed

Constants

Properties

$allowedType

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

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

_generateTextareaHtmlEditor()

protected _generateTextareaHtmlEditor(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : mixed
$attributes : 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

generateButton()

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

generateCaptcha()

protected generateCaptcha(mixed &$source, mixed $control, mixed &$attributes) : mixed
Parameters
$source : mixed
$control : 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

generateChoice()

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

generateDate()

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

generateDatetime()

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

generateGroup()

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

generateHidden()

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

generateHtmleditor()

protected generateHtmleditor(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

generateTime()

protected generateTime(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

generateWikieditor()

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

readChildControls()

protected readChildControls(array<string|int, mixed> &$source, string $controltype, SimpleXMLElement $xml, array<string|int, mixed> $ignore[, string $itemname = '' ]) : int
Parameters
$source : array<string|int, mixed>
$controltype : string
$xml : SimpleXMLElement
$ignore : array<string|int, mixed>
$itemname : string = ''
Tags
throws
jException
Return values
int

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

readItem()

protected readItem(mixed $item, mixed $hasSelectedValues, mixed $controltype, mixed &$selectedvalues) : mixed
Parameters
$item : mixed
$hasSelectedValues : mixed
$controltype : mixed
$selectedvalues : mixed
Return values
mixed

readLabel()

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

readOnCheckValue()

protected readOnCheckValue(mixed &$source, mixed $control) : mixed
Parameters
$source : mixed
$control : 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