コード例 #1
0
 public function __construct()
 {
     $this->_tag = 'body';
     parent::__construct();
     $this->_events->register('onload');
     $this->_events->register('onunload');
 }
コード例 #2
0
 public function __construct($id = null, $class_name = null)
 {
     $this->_tag = 'th';
     parent::__construct();
     $this->_attributes->register('abbr');
     $this->_attributes->register('axis');
     $this->_attributes->register('headers');
     $this->_attributes->register('scope');
     $this->_attributes->register('rowspan');
     $this->_attributes->register('colspan');
     $this->_attributes->register('align');
     $this->_attributes->register('char');
     $this->_attributes->register('charoff');
     $this->_attributes->register('valign');
     $this->_attributes->register('nowrap');
     $this->_attributes->register('bgcolor');
     $this->_attributes->register('width');
     $this->_attributes->register('height');
     if ($id !== null) {
         $this->id = $id;
     }
     if ($class_name !== null) {
         $this->class = $class_name;
     }
 }
コード例 #3
0
 public function __construct($id = null, $class_name = null)
 {
     $this->_tag = 'span';
     parent::__construct();
     if ($id !== null) {
         $this->id = $id;
     }
     if ($class_name !== null) {
         $this->class = $class_name;
     }
 }
コード例 #4
0
 public function __construct($value = '', $text = '', $selected = false, $disabled = false)
 {
     $this->_tag = 'option';
     parent::__construct();
     $this->_attributes->register('value', $value);
     $this->_attributes->register('selected', $selected);
     $this->_attributes->register('disabled', $disabled);
     if ($text != '') {
         $this->add(new HTML_Text($text));
     }
 }
コード例 #5
0
 public function __construct($id = null, $class_name = null)
 {
     $this->_tag = 'thead';
     parent::__construct();
     $this->_attributes->register('align');
     $this->_attributes->register('char');
     $this->_attributes->register('charoff');
     $this->_attributes->register('valign');
     if ($id !== null) {
         $this->id = $id;
     }
     if ($class_name !== null) {
         $this->class = $class_name;
     }
 }
コード例 #6
0
 public function __construct($action = '', $method = self::POST)
 {
     $this->_tag = 'form';
     parent::__construct();
     if (!array_key_exists($method, self::$_methods)) {
         throw new HTML_Form_Exception('Invalid form method');
     }
     $this->_attributes->register('action', $action);
     $this->_attributes->register('method', self::$_methods[$method]);
     $this->_attributes->register('enctype');
     $this->_attributes->register('accept');
     $this->_attributes->register('accept-charset');
     $this->_events->register('onsubmit');
     $this->_events->register('onreset');
 }
コード例 #7
0
 public function __construct($name = null)
 {
     $this->_tag = 'textarea';
     parent::__construct();
     $this->_attributes->register('name', $name);
     $this->_attributes->register('rows');
     $this->_attributes->register('cols');
     $this->_attributes->register('disabled');
     $this->_attributes->register('readonly');
     $this->_attributes->register('tabindex');
     $this->_attributes->register('accesskey');
     $this->_events->register('onfocus');
     $this->_events->register('onblur');
     $this->_events->register('onselect');
     $this->_events->register('onchange');
 }
コード例 #8
0
 public function __construct($id = null, $class_name = null)
 {
     $this->_tag = 'table';
     parent::__construct();
     $this->_attributes->register('summary');
     $this->_attributes->register('width');
     $this->_attributes->register('border');
     $this->_attributes->register('frame');
     $this->_attributes->register('rules');
     $this->_attributes->register('cellspacing');
     $this->_attributes->register('cellpadding');
     if ($id !== null) {
         $this->id = $id;
     }
     if ($class_name !== null) {
         $this->class = $class_name;
     }
 }
コード例 #9
0
 public function __construct($id = null, $class_name = null)
 {
     $this->_tag = 'a';
     parent::__construct($id, $class_name);
     $this->_attributes->register('charset');
     $this->_attributes->register('type');
     $this->_attributes->register('name');
     $this->_attributes->register('href');
     $this->_attributes->register('hreflang');
     $this->_attributes->register('rel');
     $this->_attributes->register('rev');
     $this->_attributes->register('accesskey');
     $this->_attributes->register('shape');
     $this->_attributes->register('coords');
     $this->_attributes->register('target');
     $this->_attributes->register('tabindex');
     $this->_events->register('onfocus');
     $this->_events->register('onblur');
 }
コード例 #10
0
 public function __construct($tag)
 {
     $this->_tag = $tag;
     parent::__construct();
 }
コード例 #11
0
 public function __construct($id = null, $class_name = null)
 {
     $this->_tag = 'p';
     parent::__construct($id, $class_name);
 }
コード例 #12
0
 public function __construct($id = null)
 {
     parent::__construct($id);
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct();
 }