FormLib
[ class tree: FormLib ] [ index: FormLib ] [ all elements ]

Class: PasswordField

Source Location: /FormLib/PasswordField.php

Class Overview

Field
   |
   --TextField
      |
      --PasswordField

Object oriented wrapper around an HTML text password field.


Author(s):

  • Randy L. Pearson

Version:

  • 0.3

Methods


Inherited Variables

Inherited Methods

Class: TextField

TextField::__construct()
Constructor
TextField::displayField()
Renders the label and text field assuming a 2 column table.

Class: Field

Field::__construct()
Constructor
Field::display()
Function to render the field as HTML.
Field::displayField()
Renders the field as HTML. Must be overridden in child classes.
Field::isValid()
Checks to see if the data entered into a field is valid.
Field::__get()
Property accessor.
Field::__set()
Property mutator.

Class Details

[line 20]
Object oriented wrapper around an HTML text password field.

This version replaces the custom render by passing the type of field to the TextField constructor so its display() function can use any available type value.




Tags:

author:  Randy L. Pearson
version:  0.3


[ Top ]


Class Methods


constructor __construct [line 30]

PasswordField __construct( string $name, string $label, [string $value = ""])

Constructor Initializes a PasswordField object.



Tags:

access:  public


Overrides TextField::__construct() (Constructor)

Parameters:

string   $name   Name assigned to the field.
string   $label   Text assigned to the field.
string   $value   Value assigned to the field. (Default: "")

[ Top ]

method encrypted [line 40]

string encrypted( $encryptor)

Runs the current password through an encryption engine.



Tags:

return:  Encrypted form of the password.
access:  public


Parameters:

CryptEngine   $encryptor  

[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:48:06 -0600 by phpDocumentor 1.3.1