protected function setInput($obj)
{
$this->inputObject = $obj;
foreach ($obj as $key => $value) {
$this->{$key} = $value;
}
$this->type = in_array($obj->type, $this->allowTypes) ? $obj->type : $this->defaultType;
if ($this->name == 'default') {
$this->visible = false;
}
}