addAttributes() 공개 메소드

Adds a list of attributes to be rendered.
public addAttributes ( $attrs )
예제 #1
0
 public function testAddAttributes()
 {
     $writer = new THtmlWriter(self::$output);
     $writer->addAttributes(array('type' => 'text', 'value' => 'Prado & Cie'));
     // get the private var _attributes
     $result = self::readAttribute($writer, '_attributes');
     self::assertEquals('text', $result['type']);
     self::assertEquals(THttpUtility::htmlEncode('Prado & Cie'), $result['value']);
 }