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

Class: HiddenField

Source Location: /FormLib/HiddenField.php

Class Overview

Field
   |
   --HiddenField

Object oriented wrapper around a hidden HTML text field.


Author(s):

  • Randy L. Pearson

Version:

  • 0.3

Methods


Inherited Variables

Inherited Methods

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 16]
Object oriented wrapper around a hidden HTML text field.



Tags:

author:  Randy L. Pearson
version:  0.3


[ Top ]


Class Methods


constructor __construct [line 26]

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

Constructor

Initializes a HiddenField object.




Tags:

access:  public


Overrides Field::__construct() (Constructor)

Parameters:

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

[ Top ]

method display [line 34]

void display( $formStyle)

Override the display function since we don't want a label.



Tags:

access:  public


Overrides Field::display() (Function to render the field as HTML.)

Parameters:

   $formStyle  

[ Top ]

method displayField [line 41]

void displayField( $formStyle)



Tags:

access:  protected


Overrides Field::displayField() (Renders the field as HTML. Must be overridden in child classes.)

Parameters:

   $formStyle  

[ Top ]


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