/** * Returns a \r8\HTML\Tag object that represents this instance * * @return \r8\HTML\Tag */ public function getTag() { return parent::getTag()->setAttr("type", "text"); }
/** * Returns a \r8\HTML\Tag object that represents this instance * * @return \r8\HTML\Tag */ public function getTag() { return parent::getTag()->unsetAttr('value')->setAttr("type", "file"); }
/** * Returns a \r8\HTML\Tag object that represents this instance * * @return \r8\HTML\Tag */ public function getTag() { return parent::getTag()->setAttr("type", "password"); }
/** * Constructor... * * Sets the default boolean filter * * @param String The name of this form field * @param String|NULL $label The label that describes this input field */ public function __construct($name, $label = NULL) { parent::__construct($name, $label); $this->setFilter(new \r8\Filter\Boolean()); }
/** * Constructor... * * Loads in the default validator * * @param String The name of this form field * @param String|NULL $label The label that describes this input field */ public function __construct($name, $label = NULL) { parent::__construct($name, $label); $this->setValidator(new \r8\Validator\MultiField($this)); }