Changeset 1246
- Timestamp:
- 01/16/08 15:43:10 (8 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisTemplate.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/integration/MemphisConfigTestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php
r1231 r1246 9 9 stubClassLoader::load('net::stubbles::lang::exceptions::stubFileNotFoundException', 10 10 'net::stubbles::util::stubRegistry', 11 'net::stubbles::websites::memphis::stubMemphisPageElement' 11 'net::stubbles::websites::memphis::stubMemphisPageElement', 12 'net::stubbles::websites::memphis::stubMemphisTemplate' 12 13 ); 13 14 /** … … 37 38 public static function __static() 38 39 { 39 self::$baseDir = stubRegistry::getConfig( 'net.stubbles.websites.memphis.templateDir', stubConfig::getPagePath() . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'templates');40 self::$baseDir = stubRegistry::getConfig(stubMemphisTemplate::REGISTRY_KEY_DIR, stubConfig::getPagePath() . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'templates'); 40 41 } 41 42 trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php
r1231 r1246 37 37 public static function __static() 38 38 { 39 self::$tmplPath = stubRegistry::getConfig( 'net.stubbles.websites.memphis.templateDir', stubConfig::getPagePath() . '/../templates');39 self::$tmplPath = stubRegistry::getConfig(stubMemphisTemplate::REGISTRY_KEY_DIR, stubConfig::getPagePath() . '/../templates'); 40 40 } 41 41 trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php
r1231 r1246 90 90 protected function createTemplate() 91 91 { 92 $template = new stubMemphisTemplate(stubRegistry::getConfig( 'net.stubbles.websites.memphis.templateDir', stubConfig::getPagePath() . '/../templates'));92 $template = new stubMemphisTemplate(stubRegistry::getConfig(stubMemphisTemplate::REGISTRY_KEY_DIR, stubConfig::getPagePath() . '/../templates')); 93 93 if (stubMode::$CURRENT->isCacheEnabled() === true) { 94 94 $template->enableCache(); trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisTemplate.php
r1231 r1246 20 20 { 21 21 /** 22 * registry key for template dir setting 23 */ 24 const REGISTRY_KEY_DIR = 'net.stubbles.websites.memphis.templateDir'; 25 /** 22 26 * the patTemplate instance 23 27 * trunk/src/test/php/net/stubbles/integration/MemphisConfigTestCase.php
r1220 r1246 7 7 * @subpackage test_integration 8 8 */ 9 stubClassLoader::load('net::stubbles::websites::memphis::stubMemphisConfig'); 9 stubClassLoader::load('net::stubbles::websites::memphis::stubMemphisConfig', 10 'net::stubbles::websites::memphis::stubMemphisTemplate' 11 ); 10 12 /** 11 13 * Integration test for memphis view engine configuration. … … 21 23 public function testConfig() 22 24 { 23 stubRegistry::setConfig( 'net.stubbles.websites.memphis.templateDir', TEST_SRC_PATH . DIRECTORY_SEPARATOR . 'resources');25 stubRegistry::setConfig(stubMemphisTemplate::REGISTRY_KEY_DIR, TEST_SRC_PATH . DIRECTORY_SEPARATOR . 'resources'); 24 26 $memphisConfig = new stubMemphisConfig(); 25 27 $this->assertEqual($memphisConfig->getParts(), array('content', 'navteasers', 'teasers', 'annotations', 'header'));
