Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

fbHTML_LockFormFields Class Reference

List of all members.

Detailed Description

Lock selected HTML form fields.

See also:
http://www.zend.com/codex.php?id=626&single=1

Definition at line 77 of file LockFormFields.php.

Static Public Member Functions

 getHash ()
 getHashName ()
 getHashField ()
 addMagic ($magic_life=FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY)
set (&$values, $locked=null, $magic_life=FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY)
 check (&$values, $locked=null, $magic_life=FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY)

Static Private Member Functions

 _generateHash ($values, $locked=null, $magic_life=FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY)


Member Function Documentation

fbHTML_LockFormFields::_generateHash values,
locked = null,
magic_life = FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY
[static, private]
 

Parameters:
$values hash hash of all variables, usually $_REQUEST
$locked array array of keys in $values to protect
$magic_life int
See also:
FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY, etc.
Returns:
string

Definition at line 148 of file LockFormFields.php.

References addMagic(), FB_LOCK_FORM_FIELDS_MAGIC_LIFE_SCRIPT, and FB_LOCK_FORM_FIELDS_MAGIC_LIFE_SESSION.

Referenced by check(), and set().

fbHTML_LockFormFields::addMagic magic_life = FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY  )  [static]
 

Subclasses can override this function, but should call the parent too:

class MySecureRequest extends fbHTML_LockFormFields { function addMagic($magic_life = FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY) { $s = parent::addMagic($magic_life); $s .= ... } }

Parameters:
$magic_life int
See also:
FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY, etc.
Returns:
string

Definition at line 128 of file LockFormFields.php.

Referenced by _generateHash().

fbHTML_LockFormFields::check &$  values,
locked = null,
magic_life = FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY
[static]
 

Validate that the locked variables in $values have not been tampered with.

Parameters:
$values hash hash of all variables, usually $_REQUEST, or $_POST
$locked array array of keys in $values to protect
$magic_life int
See also:
FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY, etc.
Returns:
bool true if the hash is valid, otherwise false

Definition at line 224 of file LockFormFields.php.

References _generateHash().

fbHTML_LockFormFields::getHash  )  [static]
 

Returns:
mixed

Definition at line 82 of file LockFormFields.php.

fbHTML_LockFormFields::getHashField  )  [static]
 

Returns:
string

Definition at line 100 of file LockFormFields.php.

fbHTML_LockFormFields::getHashName  )  [static]
 

Returns:
mixed

Definition at line 92 of file LockFormFields.php.

& fbHTML_LockFormFields::set &$  values,
locked = null,
magic_life = FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY
[static]
 

Generate hash of locked variables in $values and add it to the array

Parameters:
$values hash hash of all variables, usually $_REQUEST, or $_POST
$locked array array of keys in $values to protect
$magic_life int
See also:
FB_LOCK_FORM_FIELDS_MAGIC_LIFE_ANY, etc.
Returns:
hash Original $values array with hash added to it

Definition at line 205 of file LockFormFields.php.

References _generateHash().


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:52:32 2004 for Freebeer by doxygen 1.3.6-20040222