Comments: on this page. Click to read or post your own.

Class ConfirmedPasswordField

Description

Shows two password-fields, and checks for matching passwords.

Optionally hides the fields by default and shows a link to toggle their visibility.

Located in /sapphire/forms/ConfirmedPasswordField.php (line 10)

Object
   |
   --ViewableData
      |
      --RequestHandlingData
         |
         --FormField
            |
            --ConfirmedPasswordField
Variable Summary
Method Summary
ConfirmedPasswordField __construct (string $name, [string $title = null], [mixed $value = ""], [Form $form = null], [boolean $showOnClick = false], [string $titleConfirmField = null])
void Field ()
bool isSaveable ()
void jsValidation ()
bool saveInto ( $record)
void setCanBeEmpty ( $value)
void setRightTitle ( $title)
void setValue ( $value)
void validate ()
Variables
boolean $canBeEmpty = false (line 39)

Allow empty fields in serverside validation

  • access: public
int $maxLength = null (line 24)

Maximum character length of the password.

  • access: public
int $minLength = null (line 17)

Minimum character length of the password.

  • access: public
boolean $requireStrongPassword = false (line 32)

Enforces at least one digit and one alphanumeric character (in addition to {$minLength} and {$maxLength}

  • access: public
boolean $showOnClick = false (line 47)

Hide the two password fields by default, and provide a link instead that toggles them.

  • access: protected
string $showOnClickTitle = 'Change Password' (line 55)

Title for the link that triggers the visibility of password fields.

  • access: public

Inherited Variables

Inherited from FormField

FormField::$containerFieldSet
FormField::$description
FormField::$disabled
FormField::$dontEscape
FormField::$extraClass
FormField::$extraClasses
FormField::$form
FormField::$leftTitle
FormField::$message
FormField::$messageType
FormField::$name
FormField::$readonly
FormField::$rightTitle
FormField::$tabIndex
FormField::$title
FormField::$value

Inherited from RequestHandlingData

RequestHandlingData::$allowed_actions
RequestHandlingData::$request
RequestHandlingData::$url_handlers

Inherited from ViewableData

ViewableData::$casting
ViewableData::$castingHelperPair_cache
ViewableData::$customisedObj
ViewableData::$failover
ViewableData::$iteratorPos
ViewableData::$iteratorTotalItems
ViewableData::$namedAs
ViewableData::$parent
ViewableData::$_natural_cache
ViewableData::$_object_cache
ViewableData::$_xml_cache

Inherited from Object

Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Methods
Constructor __construct (line 65)
ConfirmedPasswordField __construct (string $name, [string $title = null], [mixed $value = ""], [Form $form = null], [boolean $showOnClick = false], [string $titleConfirmField = null])
  • string $name
  • string $title
  • mixed $value
  • Form $form
  • boolean $showOnClick
  • string $titleConfirmField: Alternate title (not localizeable)

Redefinition of:
FormField::__construct()
Create a new field.
Field (line 88)
void Field ()

Redefinition of:
FormField::Field()
Returns the form field - used by templates.
isSaveable (line 244)

Determines if the field was actually shown on the clientside - if not, we don't validate or save it.

bool isSaveable ()
jsValidation (line 148)
void jsValidation ()

Redefinition of:
FormField::jsValidation()
javascript handler Functions for each field type by default formfield doesnt have a validation function
performReadonlyTransformation (line 330)

Makes a pretty readonly field with some stars in it

void performReadonlyTransformation ()

Redefinition of:
FormField::performReadonlyTransformation()
Returns a readonly version of this field
saveInto (line 319)

Only save if field was shown on the client, and is not empty.

bool saveInto ( $record)

Redefinition of:
FormField::saveInto()
Method to save this form field into the given data object.
setCanBeEmpty (line 120)

Can be empty is a flag that turns on/off empty field checking.

For example, set this to false (the default) when creating a user account, and true

void setCanBeEmpty ( $value)
  • $value
setRightTitle (line 124)
void setRightTitle ( $title)
  • $title

Redefinition of:
FormField::setRightTitle()
setValue (line 133)

Value is sometimes an array, and sometimes a single value, so we need to handle both cases

void setValue ( $value)
  • $value

Redefinition of:
FormField::setValue()
Set the field value.
validate (line 249)
void validate ()

Redefinition of:
FormField::validate()
Validation Functions for each field type by default formfield doesnt have a validation function

Inherited Methods

Inherited From FormField

FormField::__construct()
FormField::addExtraClass()
FormField::attrName()
FormField::attrTitle()
FormField::attrValue()
FormField::createTag()
FormField::dataValue()
FormField::debug()
FormField::describe()
FormField::extraClass()
FormField::Field()
FormField::FieldHolder()
FormField::forTemplate()
FormField::getForm()
FormField::getTabIndex()
FormField::getTabIndexHTML()
FormField::hasClass()
FormField::hasData()
FormField::id()
FormField::isComposite()
FormField::isDisabled()
FormField::isReadonly()
FormField::jsValidation()
FormField::LeftTitle()
FormField::Link()
FormField::Message()
FormField::MessageType()
FormField::Name()
FormField::name_to_label()
FormField::performDisabledTransformation()
FormField::performReadonlyTransformation()
FormField::removeExtraClass()
FormField::Required()
FormField::RightTitle()
FormField::rootFieldSet()
FormField::saveInto()
FormField::setContainerFieldSet()
FormField::setDisabled()
FormField::setError()
FormField::setForm()
FormField::setLeftTitle()
FormField::setName()
FormField::setReadonly()
FormField::setRightTitle()
FormField::setTabIndex()
FormField::setTitle()
FormField::setValue()
FormField::SmallFieldHolder()
FormField::Title()
FormField::transform()
FormField::Type()
FormField::validate()
FormField::Value()

Inherited From RequestHandlingData

RequestHandlingData::checkAccessAction()
RequestHandlingData::getRequest()
RequestHandlingData::handleRequest()
RequestHandlingData::httpError()

Inherited From ViewableData

ViewableData::ATT_val()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
ViewableData::CSSClasses()
ViewableData::CurrentMember()
ViewableData::CurrentPage()
ViewableData::customise()
ViewableData::Debug()
ViewableData::defineMethods()
ViewableData::escapeTypeForField()
ViewableData::Even()
ViewableData::EvenOdd()
ViewableData::First()
ViewableData::FirstLast()
ViewableData::getField()
ViewableData::getIterator()
ViewableData::getXMLValues()
ViewableData::hasField()
ViewableData::HasPerm()
ViewableData::hasValue()
ViewableData::i18nLocale()
ViewableData::IsAjax()
ViewableData::iteratorProperties()
ViewableData::JS_val()
ViewableData::Last()
ViewableData::Me()
ViewableData::Middle()
ViewableData::MiddleString()
ViewableData::obj()
ViewableData::Odd()
ViewableData::Pos()
ViewableData::RAW_val()
ViewableData::renderWith()
ViewableData::SecurityID()
ViewableData::setCustomisedObj()
ViewableData::setField()
ViewableData::SQL_val()
ViewableData::ThemeDir()
ViewableData::Top()
ViewableData::TotalItems()
ViewableData::val()
ViewableData::XML_val()
ViewableData::__get()
ViewableData::__isset()
ViewableData::__set()

Inherited From Object

Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:39:15 +1300 by phpDocumentor 1.3.2