silverorange Code


Swat.SwatConfirmEmailEntry
/Swat/SwatConfirmEmailEntry.php at line 17

Class SwatConfirmEmailEntry

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatEntry
└─SwatEmailEntry
└─SwatConfirmEmailEntry

public class SwatConfirmEmailEntry
extends SwatEmailEntry

An email address confirmation entry widget

Automatically compares the value of the confirmation with the matching email entry widget to see if they match.

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

Field Summary
SwatEmailEntry

$email_widget

A reference to the matching email entry widget.

Method Summary
protected array

getCSSClassNames()

Gets the array of CSS classes that are applied to this entry.

void

process()

Checks to make sure email addresses match.

Methods inherited from Swat.SwatEmailEntry
getCSSClassNames, process, validateEmailAddress
Methods inherited from Swat.SwatEntry
display, getCSSClassNames, getDisplayValue, getFocusableHtmlId, getInputTag, getNonce, getRawValue, getState, getValidationMessage, hasRawValue, 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/SwatConfirmEmailEntry.php at line 26

email_widget

public SwatEmailEntry $email_widget = null

A reference to the matching email entry widget


Method Detail

/Swat/SwatConfirmEmailEntry.php at line 68

getCSSClassNames

protected array getCSSClassNames()

Gets the array of CSS classes that are applied to this entry

Returns:
the array of CSS classes that are applied to this entry.
See Also:
SwatUIObject::getCSSClassString()

/Swat/SwatConfirmEmailEntry.php at line 40

process

public void process()

Checks to make sure email addresses match

Checks to make sure the values of the two email address fields are the same. If an associated email entry widget is not set, an exception is thrown. If the addresses do not match, an error is added to this widget.

Throws:
SwatException

silverorange Code