KWeb  6.4
FormItem Class Reference
Inheritance diagram for FormItem:
FormPanel FormValue FormGroup Form_Value_Recaptcha FormValue_agree FormValue_button FormValue_checkbox FormValue_file FormValue_header FormValue_hidden FormValue_link FormValue_note FormValue_page FormValue_preview FormValue_radio FormValue_raw FormValue_row FormValue_select FormValue_selectMultiple FormValue_submit FormValue_text FormValue_token

Public Member Functions

 __construct ($name= '', $title= '', $info= '', $data=array())
 getType ()
 getTypes ()
 isSubmitted ()
 getTitleString ($printer)
 gotValue ()
 printValue ($printer)
 printHidden ($printer)
 printRow ($printer)
 printRowContent ($printer)
 getError ($fieldTitle= '', $errorId=false)
 Returns the error message.
 getErrors ()
 pushError ($message)
 Adds an error to the error stack.
 addError ($message)
 isValid ()
 validate ()
 revalidate ()
 isPanel ()
 getFormName ($suffix= '')
 getIdName ($suffix= '')
 getFormId ($suffix= '')
 getFormRowId ($suffix= '')
 getFormErrorId ($suffix= '')
 getCSSClass ()
 setCSSClass ($css)
 addCSSClass ($css)

Data Fields

 $name
 $title
 $info
 $data = array()
 $css
 $panel = null

Protected Attributes

 $errors = null
 List of error for this item.

Constructor & Destructor Documentation

FormItem::__construct ( name = '',
title = '',
info = '',
data = array() 
)

Member Function Documentation

FormItem::addCSSClass ( css)
Returns:
FormItem
FormItem::addError ( message)
FormItem::getCSSClass ( )
FormItem::getError ( fieldTitle = '',
errorId = false 
)

Returns the error message.

Parameters:
$fieldTitle- title of the field
$errorId- Id of an error, or false fo default message

Reimplemented in FormGroup, and FormValue.

FormItem::getErrors ( )
FormItem::getFormErrorId ( suffix = '')
FormItem::getFormId ( suffix = '')
FormItem::getFormName ( suffix = '')
FormItem::getFormRowId ( suffix = '')
FormItem::getIdName ( suffix = '')
FormItem::getTitleString ( printer)

Reimplemented in FormValue_checkbox.

FormItem::getTypes ( )
FormItem::isPanel ( )

Reimplemented in FormPanel.

FormItem::isSubmitted ( )

Reimplemented in FormPanel, and FormGroup.

FormItem::isValid ( )

Reimplemented in FormPanel.

FormItem::printHidden ( printer)

Reimplemented in FormValue_hidden, FormPanel, and FormValue.

FormItem::printRowContent ( printer)

Reimplemented in FormPanel.

FormItem::pushError ( message)

Adds an error to the error stack.

Returns:
FormItem
FormItem::revalidate ( )
FormItem::setCSSClass ( css)
Returns:
FormItem

Field Documentation

FormItem::$css
FormItem::$data = array()
FormItem::$errors = null [protected]

List of error for this item.

If it's null, then it was not validated...

FormItem::$info
FormItem::$name
FormItem::$panel = null
FormItem::$title

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