Changeset 930
- Timestamp:
- 09/20/07 21:48:24 (1 year ago)
- Files:
-
- trunk/build/stubbles/build.xml (modified) (1 diff)
- trunk/config/php/config-dist.php (modified) (2 diffs)
- trunk/config/php/config.php (modified) (3 diffs)
- trunk/examples/config/php/config-dist.php (modified) (3 diffs)
- trunk/examples/config/php/config.php (modified) (3 diffs)
- trunk/examples/config/xml/memphis.xml (added)
- trunk/examples/docroot/websites-memphis/static (deleted)
- trunk/examples/pages (moved) (moved from trunk/examples/config/xml/pages)
- trunk/examples/pages/memphis/index.xml (modified) (1 diff)
- trunk/examples/templates (added)
- trunk/examples/templates/frame.tmpl (added)
- trunk/examples/templates/index.html (copied) (copied from trunk/examples/docroot/websites-memphis/static/index.html)
- trunk/pages (moved) (moved from trunk/config/xml/pages)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/stubPageXJConfFactory.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/xml/stubXMLPostInterceptor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/stubbles/build.xml
r878 r930 57 57 <copy file="${project.basedir}/../../config/xml/variantmanager.xml" tofile="${build.src.dir}/config/xml/variantmanager-dist.xml" /> 58 58 59 <mkdir dir="${build.src.dir}/ config/xml/pages" />60 <mkdir dir="${build.src.dir}/ config/xml/pages/conf" />61 <mkdir dir="${build.src.dir}/ config/xml/pages/skin" />62 <copy file="${project.basedir}/../../ config/xml/pages/skin/default.xml" tofile="${build.src.dir}/config/xml/pages/skin/default-dist.xml" />63 <mkdir dir="${build.src.dir}/ config/xml/pages/txt" />59 <mkdir dir="${build.src.dir}/pages" /> 60 <mkdir dir="${build.src.dir}/pages/conf" /> 61 <mkdir dir="${build.src.dir}/pages/skin" /> 62 <copy file="${project.basedir}/../../pages/skin/default.xml" tofile="${build.src.dir}/pages/skin/default-dist.xml" /> 63 <mkdir dir="${build.src.dir}/pages/txt" /> 64 64 65 65 <mkdir dir="${build.src.dir}/docroot" /> trunk/config/php/config-dist.php
r628 r930 35 35 */ 36 36 private static $configPath = null; 37 /** 38 * path to page files 39 * 40 * @var string 41 */ 42 private static $pagePath = null; 37 43 38 44 /** … … 117 123 118 124 /** 125 * this method should return the path to the pages directory 126 * 127 * By default its /path/to/stubbles/pages. 128 * 129 * @return string 130 */ 131 public static function getPagePath() 132 { 133 if (null == self::$pagePath) { 134 self::$pagePath = realpath(dirname(__FILE__) . '/../../pages'); 135 } 136 137 return self::$pagePath; 138 } 139 140 /** 119 141 * switch to use star files or not 120 142 * trunk/config/php/config.php
r613 r930 35 35 */ 36 36 private static $configPath = null; 37 /** 38 * path to page files 39 * 40 * @var string 41 */ 42 private static $pagePath = null; 37 43 38 44 /** … … 105 111 * By default its /path/to/stubbles/config. 106 112 * 107 * @return unknown113 * @return string 108 114 */ 109 115 public static function getConfigPath() … … 114 120 115 121 return self::$configPath; 122 } 123 124 /** 125 * this method should return the path to the pages directory 126 * 127 * By default its /path/to/stubbles/pages. 128 * 129 * @return string 130 */ 131 public static function getPagePath() 132 { 133 if (null == self::$pagePath) { 134 self::$pagePath = realpath(dirname(__FILE__) . '/../../pages'); 135 } 136 137 return self::$pagePath; 116 138 } 117 139 trunk/examples/config/php/config-dist.php
r836 r930 36 36 */ 37 37 private static $configPath = null; 38 /** 39 * path to page files 40 * 41 * @var string 42 */ 43 private static $pagePath = null; 38 44 39 45 /** … … 106 112 * By default its /path/to/stubbles/config. 107 113 * 108 * @return unknown114 * @return string 109 115 */ 110 116 public static function getConfigPath() … … 115 121 116 122 return self::$configPath; 123 } 124 125 /** 126 * this method should return the path to the pages directory 127 * 128 * By default its /path/to/stubbles/pages. 129 * 130 * @return string 131 */ 132 public static function getPagePath() 133 { 134 if (null == self::$pagePath) { 135 self::$pagePath = realpath(dirname(__FILE__) . '/../../pages'); 136 } 137 138 return self::$pagePath; 117 139 } 118 140 trunk/examples/config/php/config.php
r709 r930 36 36 */ 37 37 private static $configPath = null; 38 /** 39 * path to page files 40 * 41 * @var string 42 */ 43 private static $pagePath = null; 38 44 39 45 /** … … 106 112 * By default its /path/to/stubbles/config. 107 113 * 108 * @return unknown114 * @return string 109 115 */ 110 116 public static function getConfigPath() … … 115 121 116 122 return self::$configPath; 123 } 124 125 /** 126 * this method should return the path to the pages directory 127 * 128 * By default its /path/to/stubbles/pages. 129 * 130 * @return string 131 */ 132 public static function getPagePath() 133 { 134 if (null == self::$pagePath) { 135 self::$pagePath = realpath(dirname(__FILE__) . '/../../pages'); 136 } 137 138 return self::$pagePath; 117 139 } 118 140 trunk/examples/pages/memphis/index.xml
r803 r930 4 4 xmlns="http://stubbles.net/websites"> 5 5 <page> 6 <includeFile source=" static/index.html" parts="content" />6 <includeFile source="index.html" parts="content" /> 7 7 </page> 8 8 </xj:configuration> trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php
r888 r930 37 37 public static function __static() 38 38 { 39 self::$baseDir = stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::get LibPath() . '/../templates');39 self::$baseDir = stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::getPagePath() . '/../templates'); 40 40 } 41 41 trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php
r924 r930 71 71 protected function createTemplate() 72 72 { 73 $template = new stubMemphisTemplate(stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::get LibPath() . '/../templates'));73 $template = new stubMemphisTemplate(stubRegistry::getConfig('net.stubbles.websites.memphis.templateDir', stubConfig::getPagePath() . '/../templates')); 74 74 if (stubRegistry::hasConfig('net.stubbles.mode') == true && stubRegistry::getConfig('net.stubbles.mode') != 'test') { 75 75 $template->enableCache(); trunk/src/main/php/net/stubbles/websites/stubPageXJConfFactory.php
r782 r930 47 47 { 48 48 $this->cachePath = ((null == $cachePath) ? (stubConfig::getCachePath() . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR . 'pages' . DIRECTORY_SEPARATOR) : ($cachePath)); 49 $this->configPath = ((null == $configPath) ? (stubConfig::get ConfigPath() . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR . 'pages'. DIRECTORY_SEPARATOR) : ($configPath));49 $this->configPath = ((null == $configPath) ? (stubConfig::getPagePath() . DIRECTORY_SEPARATOR) : ($configPath)); 50 50 } 51 51 trunk/src/main/php/net/stubbles/websites/xml/stubXMLPostInterceptor.php
r887 r930 39 39 { 40 40 stubXMLXIncludeStreamWrapper::register(); 41 stubXMLXIncludeStreamWrapper::setIncludePath(stubConfig::get ConfigPath() . '/xml/pages/txt');41 stubXMLXIncludeStreamWrapper::setIncludePath(stubConfig::getPagePath() . '/txt'); 42 42 stubXMLXIncludeStreamWrapper::setCachePath(stubConfig::getCachePath()); 43 43 } … … 156 156 protected function createXMLSkinDocument($skin) 157 157 { 158 return DOMDocument::load(stubConfig::get ConfigPath() . '/xml/pages/skin/' . $skin . '.xml');158 return DOMDocument::load(stubConfig::getPagePath() . '/skin/' . $skin . '.xml'); 159 159 } 160 160 }
