maxLength = $maxLength;
parent::__construct($name, $title, $value, $form);
}
function Field() {
$extraClass = $this->extraClass();
$fieldSize = $this->maxLength ? min( $this->maxLength, 30 ) : 30;
if($this->maxLength) {
return "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" maxlength=\"$this->maxLength\" size=\"$fieldSize\" />";
} else {
return "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" />";
}
}
function InternallyLabelledField() {
if(!$this->value) $this->value = $this->Title();
return $this->Field();
}
}
?>