Class jFormsBuilderBase

Description

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)

  • abstract:

Located in /forms/jFormsBuilderBase.class.php (line 21)


	
			
Direct descendents
Class Description
jFormsBuilderHtml HTML form builder
Variable Summary
Method Summary
static void generateFormName ( $sel)
jFormsBuilderBase __construct (jFormsBase $form)
void getName ()
void outputControl (jFormsControl $ctrl, [array $attributes = array()])
void outputFooter ()
void outputHeader (array $params)
void outputMetaContent (jTpl $tpl)
void setAction (string $action, array $actionParams)
Variables
string $_action (line 32)

the action selector

  • access: protected
array $_actionParams = array() (line 38)

params for the action

  • access: protected
mixed $_endt = '/>' (line 45)
  • access: protected
jFormsBase $_form (line 26)

a form object

  • access: protected
mixed $_name (line 43)

form name

  • access: protected
Methods
static generateFormName (line 109)

generates a name for the form

  • access: protected
static void generateFormName ( $sel)
  • $sel
Constructor __construct (line 49)
  • access: public
jFormsBuilderBase __construct (jFormsBase $form)
getName (line 66)
  • access: public
void getName ()
outputAllControls (line 91)

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

  • abstract:
  • since: 1.1
  • access: public
void outputAllControls ()

Redefined in descendants as:
outputControl (line 98)

displays the content corresponding of the given control

  • abstract:
  • access: public
void outputControl (jFormsControl $ctrl, [array $attributes = array()])
  • jFormsControl $ctrl: the control to display
  • array $attributes: attribute to add on the generated code (html attributes for example)

Redefined in descendants as:
outputControlLabel (line 104)

displays the label corresponding of the given control

  • abstract:
  • access: public
void outputControlLabel (jFormsControl $ctrl)

Redefined in descendants as:
outputFooter (line 85)

output the footer content of the form

  • abstract:
  • access: public
void outputFooter ()

Redefined in descendants as:
outputHeader (line 80)

output the header content of the form

  • abstract:
  • access: public
void outputHeader (array $params)
  • array $params: some parameters, depending of the type of builder

Redefined in descendants as:
outputMetaContent (line 74)

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

  • abstract:
  • access: public
void outputMetaContent (jTpl $tpl)
  • jTpl $tpl: the template object

Redefined in descendants as:
setAction (line 57)
  • access: public
void setAction (string $action, array $actionParams)
  • string $action: action selector where form will be submit
  • array $actionParams: parameters for the action

Documentation generated on Mon, 26 Oct 2015 21:53:46 +0100 by phpDocumentor 1.4.3