DBLPasswordField is used to edit passwords stored in the database.
You can use it two ways:
You may or may not include the field name in the field list passed to DBLField::applyValues - secondary field won't return any value.
The field (any type) will also return no value when modifying existing record and an no (empty) password was entered. This way you can change record containing password without reentering (or even knowing) the password. (Good for administrators editing user records.)
DBLPasswordField will automatically check the password length (default minimum length is 6) and whether the passwords matches (when using primary/secondary field).
The other field's feature is automatic hashing. Currently two types of hashing are implemented:
DBLPasswordField provides method for checking whether encrypted passwords matches a plaintext one - see DBLPasswordField::passwordMatches().
Located in /DBLPasswordField.php (line 59)
DBLField | --DBLTextField | --DBLPasswordField
Inherited from DBLTextField
DBLTextField::$editSize
DBLTextField::$filterSize
DBLTextField::$maxLen
Inherited from DBLField
DBLField::$addAsterixes
DBLField::$allowEmpty
DBLField::$computed
DBLField::$dbName
DBLField::$default
DBLField::$detailAttributes
DBLField::$detailPostfix
DBLField::$detailPrefix
DBLField::$editAttributes
DBLField::$editPostfix
DBLField::$editPrefix
DBLField::$filterAttributes
DBLField::$filterPostfix
DBLField::$filterPrefix
DBLField::$indexAttributes
DBLField::$indexPostfix
DBLField::$indexPrefix
DBLField::$lookupField
DBLField::$name
DBLField::$needsMultipart
DBLField::$noOrderByTitle
DBLField::$readOnly
DBLField::$referenceURL
DBLField::$titleHTML
DBLField::$titleTxt
DBLField::$widgetAttributes
Constructor
Function to check whether cleartext password matches encrypted password.
Field settings (hashType and saltLen) must be same as when the password was encrypted.
Inherited From DBLTextField
DBLTextField::DBLTextField()
DBLTextField::formatEdit()
DBLTextField::formatFilter()
DBLTextField::formatWidget()
Inherited From DBLField
DBLField::DBLField()
DBLField::acceptFilterValue()
DBLField::acceptValue()
DBLField::addCondition()
DBLField::checkValue()
DBLField::formatDetail()
DBLField::formatEdit()
DBLField::formatFilter()
DBLField::formatIndex()
DBLField::jsCheck()
DBLField::setTitle()
DBLField::splitValue()
Documentation generated on Mon, 6 Sep 2004 21:57:15 +0200 by phpDocumentor 1.2.3