silverorange Code


Swat.SwatConfirmPasswordEntry
/Swat/SwatConfirmPasswordEntry.php at line 17

Class SwatConfirmPasswordEntry

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatEntry
└─SwatPasswordEntry
└─SwatConfirmPasswordEntry

public class SwatConfirmPasswordEntry
extends SwatPasswordEntry

A password confirmation entry widget

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

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

Field Summary
SwatPasswordEntry

$password_widget

A reference to the matching password widget.

Method Summary
protected array

getCSSClassNames()

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

void

process()

Checks to make sure passwords match.

Methods inherited from Swat.SwatPasswordEntry
getCSSClassNames, getInputTag
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/SwatConfirmPasswordEntry.php at line 26

password_widget

public SwatPasswordEntry $password_widget = null

A reference to the matching password widget


Method Detail

/Swat/SwatConfirmPasswordEntry.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/SwatConfirmPasswordEntry.php at line 40

process

public void process()

Checks to make sure passwords match

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

Throws:
SwatException

silverorange Code