コード例 #1
0
ファイル: out.php プロジェクト: PapaKot/Horowitz
 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);
     }
 }
コード例 #2
0
ファイル: structure.php プロジェクト: PapaKot/Horowitz
 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 .= '/';
     }
 }
コード例 #3
0
ファイル: template.php プロジェクト: PapaKot/Horowitz
 function __construct($path)
 {
     parent::__construct($path);
     $this->registerNameSpace('xsl', 'http://www.w3.org/1999/XSL/Transform');
 }
コード例 #4
0
ファイル: site.php プロジェクト: PapaKot/Horowitz
 function __construct($uri)
 {
     parent::__construct($uri, 'site');
 }