Jelix 1.7.18

jFormsBuilderBase
in package

base class of all builder form classes generated by the jform compiler.

a builder form class is a class which help to generate a form for the output (html form for example)

Tags
subpackage

forms

deprecated

Table of Contents

$_action  : string
the action selector.
$_actionParams  : array<string|int, mixed>
params for the action.
$_endt  : mixed
$_form  : jFormsBase
a form object.
$_name  : mixed
form name.
$options  : array<string|int, mixed>
__construct()  : mixed
endOfTag()  : mixed
getForm()  : mixed
getName()  : mixed
getOption()  : mixed
outputAllControls()  : mixed
displays all the form. outputMetaContent, outputHeader and outputFooters are also called.
outputControl()  : mixed
displays the content corresponding of the given control.
outputControlLabel()  : mixed
displays the label corresponding of the given control.
outputControlValue()  : mixed
displays the value of the control (without the control).
outputFooter()  : mixed
output the footer content of the form.
outputHeader()  : mixed
output the header content of the form.
outputMetaContent()  : mixed
called during the meta content processing in templates This method should set things on the response, like adding css styles, javascript links etc.
setAction()  : mixed
setOptions()  : mixed
set options.
generateFormName()  : mixed
generates a name for the form.

Properties

Methods

getOption()

public getOption(string $name) : mixed
Parameters
$name : string

name of an option

Return values
mixed

the value of the option

outputAllControls()

displays all the form. outputMetaContent, outputHeader and outputFooters are also called.

public abstract outputAllControls() : mixed
Tags
since
1.1
Return values
mixed

outputControl()

displays the content corresponding of the given control.

public abstract outputControl(jFormsControl $ctrl[, array<string|int, mixed> $attributes = array() ]) : mixed
Parameters
$ctrl : jFormsControl

the control to display

$attributes : array<string|int, mixed> = array()

attribute to add on the generated code (html attributes for example)

Return values
mixed

outputControlLabel()

displays the label corresponding of the given control.

public abstract outputControlLabel(jFormsControl $ctrl[, mixed $editMode = true ]) : mixed
Parameters
$ctrl : jFormsControl

the control to display

$editMode : mixed = true
Return values
mixed

outputControlValue()

displays the value of the control (without the control).

public abstract outputControlValue(jFormsControl $ctrl[, array<string|int, mixed> $attributes = array() ]) : mixed
Parameters
$ctrl : jFormsControl

the control to display

$attributes : array<string|int, mixed> = array()

attribute to add on the generated code (html attributes for example)

Return values
mixed

outputFooter()

output the footer content of the form.

public abstract outputFooter() : mixed
Return values
mixed

outputHeader()

output the header content of the form.

public abstract outputHeader() : mixed
Return values
mixed

outputMetaContent()

called during the meta content processing in templates This method should set things on the response, like adding css styles, javascript links etc.

public abstract outputMetaContent(jTpl $tpl) : mixed
Parameters
$tpl : jTpl

the template object

Return values
mixed

setAction()

public setAction(string $action, array<string|int, mixed> $actionParams) : mixed
Parameters
$action : string

action selector where form will be submit

$actionParams : array<string|int, mixed>

parameters for the action

Return values
mixed

setOptions()

set options.

public setOptions(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>

associative array

Return values
mixed

generateFormName()

generates a name for the form.

protected static generateFormName(mixed $sel) : mixed
Parameters
$sel : mixed
Return values
mixed

Search results