/** * @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); }
/** * @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); }
/** * @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)); }
/** * @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); }