function __construct($ln = null) { parent::__construct(null, 'page', false); $this->de()->setAttribute('host', $_SERVER['HTTP_HOST']); $this->de()->appendChild($this->createElement('section')); if ($ln) { $this->de()->setAttribute('ln', $ln); } if (defined('BASE_URL')) { $this->de()->setAttribute('base_url', 'http://' . $_SERVER['HTTP_HOST'] . BASE_URL); } }
function __construct($uri, $data_path = null, $template_path = null, $cache = true) { parent::__construct($uri, 'structure', $cache); $this->data_path = $data_path && is_dir($data_path) ? $data_path : pathinfo($this->documentURI(), PATHINFO_DIRNAME) . '/data/'; if (substr($this->data_path, -1) != '/') { $this->data_path .= '/'; } $this->template_path = $template_path && is_dir($template_path) ? $template_path : pathinfo($this->documentURI(), PATHINFO_DIRNAME) . '/templates/'; if (substr($this->template_path, -1) != '/') { $this->template_path .= '/'; } }
function __construct($path) { parent::__construct($path); $this->registerNameSpace('xsl', 'http://www.w3.org/1999/XSL/Transform'); }
function __construct($uri) { parent::__construct($uri, 'site'); }