Hoa central
Keygen.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Xyl\Interpreter\Html;
38 
47 class Keygen extends Generic
48 {
54  protected static $_attributes = [
55  'autofocus' => parent::ATTRIBUTE_TYPE_NORMAL,
56  'challenge' => parent::ATTRIBUTE_TYPE_NORMAL,
57  'disabled' => parent::ATTRIBUTE_TYPE_NORMAL,
58  'form' => parent::ATTRIBUTE_TYPE_NORMAL,
59  'keytype' => parent::ATTRIBUTE_TYPE_NORMAL,
60  'name' => parent::ATTRIBUTE_TYPE_NORMAL
61  ];
62 
68  protected static $_attributesMapping = …;
69 
75  protected $_validity = null;
76 
77 
78 
84  public function getForm()
85  {
86  return Form::getMe($this);
87  }
88 
96  public function isValid($revalid = false, $value)
97  {
98  if (false === $revalid && null !== $this->_validity) {
99  return $this->_validity;
100  }
101 
102  // @TODO
103  // Please, see http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080714/07ea5534/attachment.txt
104 
105  return $this->_validity = true;
106  }
107 
114  public function setValue($value)
115  {
116  return;
117  }
118 }
isValid($revalid=false, $value)
Definition: Keygen.php:96
static getMe(Concrete $element)
Definition: Form.php:592