function __get($k) { $v = parent::__get($k); // Don't display any label for hidden fields // if ($k == 'label' && $this->type == 'hidden') { return $v->hidden(); } return $v; }
function __get($k) { switch ($k) { case 'checked': //Read only access return $this->{$k}; default: return parent::__get($k); } }
function __construct(FormBuilder &$form, $name, $type) { parent::__construct($form, $name, 'file'); }