Class ControlGroup

ControlGroup

public class ControlGroup

A Class to be used in Form.class.php. Even though you can use it stand alone, its better to be used thru Form.class.php. This way Form can contain multiple instances of this classes objects. Requires Table.class.php, FormElements.class.php, FormVerifications.php


Constructor Summary
ControlGroup(var $name)
          Constructor of the class ControlGroup.
 
Method Summary
 void Add(var $object)
          Method to add a new object like a textbox or maybe a radio button.
 void AddToNewLine(var $object)
          Method to add a new object to a new line like a textbox or maybe a radio button.
 string GetString()
          Method to get the form in plain html format.
 string GetStringInTable()
          Method to get the form in plain html inside a table.(Formatted)
 void SetAlign(var $stringValue)
          Method to set the alignment of the table cells.
 void SetCellClass(var $stringValue)
          Method to set the class (CSS) of the table cells.
 void SetCSS(var $css)
          Method to set the class (CSS) for the table and Form elements.
 void SetDefaultClassForAllCells(var $class)
          Method to set the class for all cells in the table.
 void SetEmptyCells(var $trueFalse)
          Method to set the class (CSS) of the table cells.
 void SetErrorMessage(var $message)
          Method to set the error message to be returned with the form.
 void SetFormHeader(var $header)
          Method to set the header for the form.
 void SetTableAttributes(var $tableAttributes)
          Method to set the table attributes.
 void SetTRMouseOverColor(var $overcolor, var $outcolor, var $startingRow)
          Method to set the TR mouseover color.
 void SetValign(var $stringValue)
          Method to set the vertical alignment of the table cells.
 

Constructor Detail

ControlGroup

public ControlGroup(var $name)
Constructor of the class ControlGroup.
Parameters:
$name - Default Value: "myform"
Method Detail

Add

public void Add(var $object)
Method to add a new object like a textbox or maybe a radio button.

AddToNewLine

public void AddToNewLine(var $object)
Method to add a new object to a new line like a textbox or maybe a radio button.

SetErrorMessage

public void SetErrorMessage(var $message)
Method to set the error message to be returned with the form.

SetAlign

public void SetAlign(var $stringValue)
Method to set the alignment of the table cells.

SetValign

public void SetValign(var $stringValue)
Method to set the vertical alignment of the table cells.

SetCellClass

public void SetCellClass(var $stringValue)
Method to set the class (CSS) of the table cells.

SetEmptyCells

public void SetEmptyCells(var $trueFalse)
Method to set the class (CSS) of the table cells.

SetTRMouseOverColor

public void SetTRMouseOverColor(var $overcolor,
                                var $outcolor,
                                var $startingRow)
Method to set the TR mouseover color.

SetCSS

public void SetCSS(var $css)
Method to set the class (CSS) for the table and Form elements.

SetTableAttributes

public void SetTableAttributes(var $tableAttributes)
Method to set the table attributes.

SetDefaultClassForAllCells

public void SetDefaultClassForAllCells(var $class)
Method to set the class for all cells in the table.

SetFormHeader

public void SetFormHeader(var $header)
Method to set the header for the form.

GetString

public string GetString()
Method to get the form in plain html format.

GetStringInTable

public string GetStringInTable()
Method to get the form in plain html inside a table.(Formatted)