silverorange Code


Swat.SwatXHTMLTextarea
/Swat/SwatXHTMLTextarea.php at line 17

Class SwatXHTMLTextarea

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatTextarea
└─SwatXHTMLTextarea

public class SwatXHTMLTextarea
extends SwatTextarea

A text area that validates its content as an XHTML fragment against the XHTML Strict DTD

Copyright:
2006-2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
boolean

$allow_ignore_validation_errors

Whether or not to allow the user to ignore validation errors.

protected boolean

$has_validation_errors

Whether or not this XHTML entry has validation errors or not.

protected SwatCheckbox

$ignore_errors_checkbox

Composite checkbox control used to ignore XHTML validation errors.

Fields inherited from Swat.SwatTextarea
access_key, cols, maxlength, maxlength_ignored_characters, read_only, resizeable, rows, value
Fields inherited from Swat.SwatInputControl
required
Method Summary
protected void

createCompositeWidgets()

Creates the composite checkbox used by this XHTML textarea.

void

display()

Displays this widget.

protected SwatMessage

getValidationErrorMessage(array xml_errors)

Gets a human readable error message for XHTML validation errors on this textarea's value.

void

process()

Processes this widget.

Methods inherited from Swat.SwatTextarea
display, getCSSClassNames, getFocusableHtmlId, getInlineJavaScript, getState, getTextareaTag, getValueLength, process, setState
Methods inherited from Swat.SwatInputControl
getForm, init
Methods inherited from Swat.SwatControl
addMessage, getNote, printWidgetTree
Methods inherited from Swat.SwatWidget
addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer
Methods inherited from Swat.SwatUIObject
addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible

Field Detail

/Swat/SwatXHTMLTextarea.php at line 30

allow_ignore_validation_errors

public boolean $allow_ignore_validation_errors = false

Whether or not to allow the user to ignore validation errors

Setting this property to true will present a checkbox to the user allowing the user to ignore validation errors generated by the XML parser.


/Swat/SwatXHTMLTextarea.php at line 40

has_validation_errors

protected boolean $has_validation_errors = false

Whether or not this XHTML entry has validation errors or not


/Swat/SwatXHTMLTextarea.php at line 47

ignore_errors_checkbox

protected SwatCheckbox $ignore_errors_checkbox

Composite checkbox control used to ignore XHTML validation errors


Method Detail

/Swat/SwatXHTMLTextarea.php at line 198

createCompositeWidgets

protected void createCompositeWidgets()

Creates the composite checkbox used by this XHTML textarea

See Also:
SwatWidget::createCompositeWidgets()

/Swat/SwatXHTMLTextarea.php at line 104

display

public void display()

Displays this widget

Displays this widget displays as well as recursively displays any child widgets of this widget.

If this widget has not been initialized, it is automatically initialized before displaying.


/Swat/SwatXHTMLTextarea.php at line 131

getValidationErrorMessage

protected SwatMessage getValidationErrorMessage(array xml_errors)

Gets a human readable error message for XHTML validation errors on this textarea's value

Parameters:
xml_errors - an array of LibXMLError objects.
Returns:
a human readable error message for XHTML validation errors on this textarea's value.

/Swat/SwatXHTMLTextarea.php at line 52

process

public void process()

Processes this widget

After a form submit, this widget processes itself and its dependencies and then recursively processes any of its child widgets.

Composite widgets of this widget are automatically processed as well.

If this widget has not been initialized, it is automatically initialized before processing.


silverorange Code