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