예제 #1
0
파일: html.php 프로젝트: cmsx/html
 function testInput()
 {
     $i = HTML::Input('hello', 123);
     $this->assertSelectCount('input[type=text]', true, $i, 'Тип');
     $this->assertSelectCount('input[name=hello]', true, $i, 'Имя');
     $this->assertSelectCount('input[value=123]', true, $i, 'Значение');
     $i = HTML::Hidden('hello', 123, 'myclass');
     $this->assertSelectCount('input[class=myclass]', true, $i, 'Атрибуты');
 }
예제 #2
0
파일: Hidden.php 프로젝트: cmsx/form
 public function render()
 {
     return HTML::Hidden($this->getName(), $this->getTaintedValue(), $this->getAttributes(false));
 }