Esempio n. 1
0
File: Table.php Progetto: volux/dom
 /**
  * @param string $version
  * @param string $encoding
  */
 public function __construct($version = self::VERSION, $encoding = self::ENCODING)
 {
     parent::__construct($version, $encoding);
     $this->root('table');
     $this->head = $this->root()->append('thead')->text(false);
     $this->body = $this->root()->append('tbody')->text(false);
 }
Esempio n. 2
0
File: Html.php Progetto: volux/dom
 /**
  * @param string $version
  * @param string $encoding
  */
 public function __construct($version = self::VERSION, $encoding = self::ENCODING)
 {
     parent::__construct($version, $encoding);
     $this->root('html');
     $this->head = $this->root()->append('head')->text(false);
     $this->body = $this->root()->append('body')->text(false);
     $this->container = new Document();
     $this->container->root('keep');
     $this->scripts = $this->container->root()->append('scripts');
     $this->ajax = $this->container->root()->append(self::AJAX_ROOT);
 }
Esempio n. 3
0
File: File.php Progetto: volux/dom
 /**
  * @param string $version
  * @param string $encoding
  */
 public function __construct($version = self::VERSION, $encoding = self::ENCODING)
 {
     $data = '';
     if (is_file($version)) {
         $this->path = $version;
     } else {
         if ($version !== self::VERSION) {
             $data = $version;
             $version = self::VERSION;
         }
     }
     parent::__construct($version, $encoding);
     $this->source = $this->root('file')->attr('path', $this->path)->append($this->createCData($data));
 }
Esempio n. 4
0
File: Form.php Progetto: volux/dom
 /**
  * @param string $version
  * @param string $encoding
  */
 public function __construct($version = self::VERSION, $encoding = self::ENCODING)
 {
     parent::__construct($version, $encoding);
     $this->root('form')->text('');
     $this->to(true);
 }