Class MVCnPHP_Form

Description

This is a basic form class that can aid in form validation and manipulation.

Located in /Form.php (line 29)


	
			
Variable Summary
array $values
Method Summary
boolean contains (string $varName)
void Form (array $formArray)
variant get (string $varName)
array &getValues ()
void remove (string $varName)
void set (string $varName, string $value)
Variables
array $values = null (line 34)
  • access: private
Methods
contains (line 58)

Returns if the given variable name exists in form

  • return: True if found, otherwise false
  • access: public
  • author: Tony Bibbs <tony@geeklog.net>
boolean contains (string $varName)
  • string $varName: Name of form variable
Form (line 44)

Constructor

void Form (array $formArray)
  • array $formArray: Array of form fieds (typical $_GET, $_POST or $_REQUEST)
get (line 72)

Gets value for given variable name

  • return: Value of form variable
  • access: public
  • author: Tony Bibbs <tony@geeklog.net>
variant get (string $varName)
  • string $varName: Name of form variable to get value for
getValues (line 117)

Returns value array

array &getValues ()
remove (line 88)

Deletes a form variable

void remove (string $varName)
  • string $varName: Name of form variable to delete
set (line 104)

Sets a field to given value

void set (string $varName, string $value)
  • string $varName: Name of field to set
  • string $value: Value to set field to

Documentation generated on Mon, 7 Mar 2005 22:36:21 -0600 by phpDocumentor 1.3.0RC3