Class PasswdField

Description

a text field that is designed to hold passwords

  • todo: //TODO: js to check double entry passwd is the same

Located in /inc/formslib/passwdfield.php (line 29)

Field
   |
   --TextField
      |
      --PasswdField
Variable Summary
string $crypt_method
Method Summary
PasswdField PasswdField (string $name, [string $longname = ''], [string $description = ''])
void getValue ()
void selectable ()
string sqlSetStr ([string $name = ''], [ $force = false])
void update (array $data)
Variables
Methods
Constructor PasswdField (line 40)

Create a new password field object

PasswdField PasswdField (string $name, [string $longname = ''], [string $description = ''])
  • string $name: the name of the field (db name, and html field name
  • string $longname: long name to be used in the label of the field in display
  • string $description: used in the html title or longdesc for the field
getValue (line 58)

Don't return data...

We shouldn't give up our data too easily.

void getValue ()

Redefinition of:
Field::getValue()
Obtain the value of the field, taking account of default values
selectable (line 45)
void selectable ()

Redefinition of:
TextField::selectable()
sqlSetStr (line 82)

return a SQL-injection-cleansed string that can be used in an SQL UPDATE or INSERT statement. i.e. "name='Stuart'".

  • return: in SQL assignable form
string sqlSetStr ([string $name = ''], [ $force = false])
  • string $name: the field name to be used
  • $force

Redefinition of:
Field::sqlSetStr()
create an SQL-injection-cleansed string for db statements
update (line 68)

Update the value of the field from user-supplied data, but only if the field was filled in

Empty values don't count -- that way an unfilled passwd field will never count as changed

void update (array $data)
  • array $data: list of field_name => value pairs

Redefinition of:
Field::update()
update the value of the object with the user-supplied data in $data

Inherited Methods

Inherited From TextField

TextField::TextField()
TextField::displayInTable()
TextField::hidden()
TextField::selectable()
TextField::selectedValue()
TextField::_textCleaner()

Inherited From Field

Field::Field()
Field::display()
Field::displayInTable()
Field::getValue()
Field::hidden()
Field::isValid()
Field::log()
Field::selectable()
Field::selectedValue()
Field::set()
Field::setattr()
Field::setEditable()
Field::setNamebase()
Field::sqlSetStr()
Field::text_dump()
Field::update()
Field::__clone()

Documentation generated on Tue, 06 Mar 2007 10:01:48 +0000 by phpDocumentor 1.3.0