public static function _renderHidden(HTML_QuickForm2_Renderer $renderer, HTML_QuickForm2_Element_InputHidden $hidden) { return '<div style="display: none;">' . $hidden->__toString() . '</div>'; }
public function testCannotBeFrozen() { $hidden = new HTML_QuickForm2_Element_InputHidden('foo'); $this->assertFalse($hidden->toggleFrozen(true)); $this->assertFalse($hidden->toggleFrozen()); }
public function __toString() { $this->setValue($this->keyCreate()); return parent::__toString(); }
/** * @expectedException HTML_QuickForm2_InvalidArgumentException */ public function testCannotSetError() { $hidden = new HTML_QuickForm2_Element_InputHidden('noError'); $hidden->setError('a message'); }
public function __construct($name = null, $attributes = null, $data = null) { parent::__construct($name, $attributes, $data); $this->addRule('callback2', $this->getErrorMessage(), array($this, 'checkValue')); }