Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

PasswordChangeField Class Reference
[Collection Fields]

Inheritance diagram for PasswordChangeField:

CollectionField AbstractField Field List of all members.

Detailed Description

Password change field.

Author:
Scott Peshak
Date:
Date
2006-04-18 00:59:51 -0500 (Tue, 18 Apr 2006)
Use when a user is changing/setting a password, prompts the user twice and ensures that the same value was entered.

Note: This fields doesnt work very well *yet*

When making use of this field you will want to add the following (or something like it) to your site's CSS to make the password strength meter work correctly.

    *.pwdMeterActive, *.pwdMeterInactive 
    {
        border: 1px solid black;
        height: 5px;
        width: 25px;
        margin: 0px 0px 3px 3px;
        float: left;
    }

    *.pwdMeterActive
    {
        background-color: green;
    }

    *.pwdMeterInactive
    {
        background-color: grey;
    }

    *.pwdMeterLabel
  {
        font-size: 0.8em;
    } 

Definition at line 42 of file passwordchange-field.inc.php.

Public Member Functions

 __construct ($name, Form &$parentForm, array $attribs=array())
 Constructor.
 __set ($name, $value)
 Magic setter.
 drawInput ()
 Draw the input.
 validate ()
 Validate the input.
 getData ()
 Get the value of the field.
 getSqlImpl ()
 Get an SQL string for the form.
 getJs ()
 Get the JavaScript required by this field.
 getCss ()
 Get the special CSS for this field.

Protected Attributes

 $meter
 $suggest

Static Protected Attributes

 $meterJsDrawn = false
 $suggestJsDrawn = false
 $cssDrawn = false


Member Function Documentation

PasswordChangeField::__construct name,
Form &$  parentForm,
array $  attribs = array()
 

Constructor.

Parameters:
$name Name of field
$parentForm Form object that the field belongs to.
$attribs Array of extra attributes.

Reimplemented from CollectionField.

Definition at line 56 of file passwordchange-field.inc.php.

PasswordChangeField::__set name,
value
 

Magic setter.

Parameters:
$name Name of member to set
$value Value to set

Reimplemented from CollectionField.

Definition at line 76 of file passwordchange-field.inc.php.

PasswordChangeField::drawInput  ) 
 

Draw the input.

Reimplemented from CollectionField.

Definition at line 89 of file passwordchange-field.inc.php.

PasswordChangeField::getCss  ) 
 

Get the special CSS for this field.

Returns:
string of CSS

Reimplemented from CollectionField.

Definition at line 189 of file passwordchange-field.inc.php.

PasswordChangeField::getData  ) 
 

Get the value of the field.

Returns:
User entered data

Reimplemented from CollectionField.

Definition at line 147 of file passwordchange-field.inc.php.

PasswordChangeField::getJs  ) 
 

Get the JavaScript required by this field.

Reimplemented from CollectionField.

Definition at line 165 of file passwordchange-field.inc.php.

PasswordChangeField::getSqlImpl  ) 
 

Get an SQL string for the form.

Returns:
SQL string ready for use in a query

Reimplemented from CollectionField.

Definition at line 156 of file passwordchange-field.inc.php.

PasswordChangeField::validate  ) 
 

Validate the input.

This makes sure that the user input the same value twice

Reimplemented from CollectionField.

Definition at line 128 of file passwordchange-field.inc.php.


Member Data Documentation

PasswordChangeField::$cssDrawn = false [static, protected]
 

Definition at line 46 of file passwordchange-field.inc.php.

PasswordChangeField::$meter [protected]
 

Definition at line 47 of file passwordchange-field.inc.php.

PasswordChangeField::$meterJsDrawn = false [static, protected]
 

Definition at line 44 of file passwordchange-field.inc.php.

PasswordChangeField::$suggest [protected]
 

Definition at line 48 of file passwordchange-field.inc.php.

PasswordChangeField::$suggestJsDrawn = false [static, protected]
 

Definition at line 45 of file passwordchange-field.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:42 2006 for BaseJumper by doxygen 1.3.9.1