Field Class Reference

Abstraction for database fields. More...

List of all members.

Public Member Functions

 Field ($name, $label, $type, $value, $width)
 Class constructor.
 getName ()
 Get the field name.
 getLabel ()
 Get the field label.
 getType ()
 Get the field type.
 getValue ()
 Get the field value.
 getWidth ()
 Get the field width.
 setName ($name)
 Set the field name.
 setLabel ($label)
 Set the field label.
 setType ($type)
 Set the field type.
 setValue ($value)
 Set the field value.
 setWidth ($width)
 Set the field width.
 setHTML ($html)
 Set the HTML output of the field.
 html ()
 Output the system as an HTML form.

Private Attributes

 $name
 $label
 $value
 $type
 $width
 $html


Detailed Description

Abstraction for database fields.

This class is an abstraction layer for SQL columns in HTML


Member Function Documentation

Field::Field ( name,
label,
type,
value,
width 
)

Class constructor.

Initialize the class.

Parameters:
name The name of the field.
label The label the field will have in HTML.
type The HTML type of the field (text, combobox, textarea).
value The current value of the field.
width The width of the field when generating HTML output.

Field::getName (  ) 

Get the field name.

This function returns the field name.

Returns:
The field name.

Field::getLabel (  ) 

Get the field label.

This function returns the field label.

Returns:
The field label.

Field::getType (  ) 

Get the field type.

This function returns the field type.

Returns:
The field type.

Field::getValue (  ) 

Get the field value.

This function returns the field value.

Returns:
The field value.

Field::getWidth (  ) 

Get the field width.

This function returns the field width.

Returns:
The field width.

Field::setName ( name  ) 

Set the field name.

This function sets the field name.

Parameters:
The new field name.

Field::setLabel ( label  ) 

Set the field label.

This function sets the field label.

Parameters:
The new field label.

Field::setType ( type  ) 

Set the field type.

This function sets the field type.

Parameters:
The new field type.

Field::setValue ( value  ) 

Set the field value.

This function sets the field value.

Parameters:
The new field value.

Field::setWidth ( width  ) 

Set the field width.

This function sets the field width.

Parameters:
The new field width.

Field::setHTML ( html  ) 

Set the HTML output of the field.

This will set a fixed HTML output for the field, regardless of it's value and type.

Parameters:
html The HTML formatted text for the field.

Field::html (  ) 

Output the system as an HTML form.

This function will output the system as an HTML form.


Member Data Documentation

Field::$name [private]

Field::$label [private]

Field::$value [private]

Field::$type [private]

Field::$width [private]

Field::$html [private]


The documentation for this class was generated from the following file:
Generated on Sun Oct 21 06:49:25 2007 for phpSystemManager by  doxygen 1.5.2