Ejemplo n.º 1
0
Archivo: Table.php Proyecto: 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);
 }
Ejemplo n.º 2
0
Archivo: Html.php Proyecto: 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);
 }
Ejemplo n.º 3
0
Archivo: File.php Proyecto: 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));
 }
Ejemplo n.º 4
0
Archivo: Form.php Proyecto: 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);
 }