Exemple #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");
 }
Exemple #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");
 }
Exemple #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");
 }
Exemple #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());
 }
Exemple #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));
 }