Ejemplo n.º 1
0
 /**
  * Returns a \r8\HTML\Tag object that represents this instance
  *
  * @return \r8\HTML\Tag
  */
 public function getTag()
 {
     return parent::getTag()->setAttr("type", "text");
 }
Ejemplo n.º 2
0
 /**
  * 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");
 }
Ejemplo n.º 3
0
 /**
  * Returns a \r8\HTML\Tag object that represents this instance
  *
  * @return \r8\HTML\Tag
  */
 public function getTag()
 {
     return parent::getTag()->setAttr("type", "password");
 }
Ejemplo n.º 4
0
 /**
  * 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());
 }
Ejemplo n.º 5
0
 /**
  * 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));
 }