The class functions as abstract parent class for all widget classes and
provides methods to generate the form field markup and to validate the form
field input.
Usage:
$widget = new TextField();
$widget->name = 'test';
$widget->label = 'Test';
if ($_POST)
{
$widget->validate();
if (!$widget->hasErrors())
{
echo $widget->value;
}
}