XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsThemeForm Class Reference
Inheritance diagram for XoopsThemeForm:
Inheritance graph

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Form that will output as a theme-enabled HTML table

Also adds JavaScript to validate required fields

Definition at line 29 of file themeform.php.

Member Function Documentation

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

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

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

tag

Definition at line 37 of file themeform.php.

XoopsThemeForm::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

Definition at line 63 of file themeform.php.

References $ret.


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