public function __set($strKey, $varValue)
{
switch ($strKey) {
case 'maxlength':
// Do not add as attribute (see #3094)
$this->arrConfiguration['maxlength'] = $varValue;
break;
case 'mandatory':
if ($varValue) {
$this->arrAttributes['required'] = 'required';
} else {
unset($this->arrAttributes['required']);
}
parent::__set($strKey, $varValue);
break;
case 'fSize':
if ($varValue > 0) {
$this->arrAttributes['size'] = $varValue;
}
break;
default:
parent::__set($strKey, $varValue);
break;
}
}