API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsThemeForm Class Reference
Inheritance diagram for XoopsThemeForm:
Collaboration diagram for XoopsThemeForm:

Public Member Functions

 insertBreak ($extra='', $class='')
 
 render ()
 
- Public Member Functions inherited from XoopsForm
 __construct ($title, $name, $action, $method='post', $addtoken=false, $summary='')
 
 XoopsForm ()
 
 getObjectID ($object, $hashinfo='sha1')
 
 getArrayID ($value, $key, $ret, $hashinfo='sha1')
 
 getSummary ($encode=false)
 
 getTitle ($encode=false)
 
 getName ($encode=true)
 
 getAction ($encode=true)
 
 getMethod ()
 
 addElement ($formElement, $required=false)
 
getElements ($recurse=false)
 
 getElementNames ()
 
getElementByName ($name)
 
 setElementValue ($name, $value)
 
 setElementValues ($values)
 
 getElementValue ($name, $encode=false)
 
 getElementValues ($encode=false)
 
 setClass ($class)
 
 setExtra ($extra)
 
 setSummary ($summary)
 
getClass ()
 
getExtra ()
 
 setRequired (XoopsFormElement $formElement)
 
getRequired ()
 
 insertBreak ($extra=null)
 
 render ()
 
 display ()
 
 renderValidationJS ($withtags=true)
 
 assign (XoopsTpl $tpl)
 

Additional Inherited Members

- Data Fields inherited from XoopsForm
 $_action
 
 $_method
 
 $_name
 
 $_title
 
 $_summary = ''
 
 $_elements = array()
 
 $_class = array()
 
 $_extra = array()
 
 $_required = array()
 
 $_objid = 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
 

Detailed Description

Form that will output as a theme-enabled HTML table

Also adds JavaScript to validate required fields

Member Function Documentation

◆ insertBreak()

insertBreak (   $extra = '',
  $class = '' 
)

Insert an empty row in the table to serve as a separator.

Parameters
string$extraHTML to be displayed in the empty row.
string$classCSS class name for

tag

Here is the call graph for this function:

◆ render()

render ( )

create HTML to output the form as a theme-enabled table with validation.

YOU SHOULD AVOID TO USE THE FOLLOWING Nocolspan METHOD, IT WILL BE REMOVED

To use the noColspan simply use the following example:

$colspan = new XoopsFormDhtmlTextArea( '', 'key', $value, '100', '100' ); $colspan->setNocolspan(); $form->addElement( $colspan );

Returns
string

Reimplemented from XoopsForm.

Here is the call graph for this function:

The documentation for this class was generated from the following file: