Changeset 119
- Timestamp:
- 01/19/07 08:23:20 (2 years ago)
- Files:
-
- trunk/config/php/config.php (modified) (1 diff)
- trunk/docroot/index.php (modified) (1 diff)
- trunk/lib (added)
- trunk/src/main/php/net/stubbles/helper/stubXJConfLoader.php (modified) (1 diff)
- trunk/src/test/run.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config/php/config.php
r51 r119 1 1 <?php 2 /** 3 * use this class to configure your site 4 */ 2 5 class stubConfig 3 6 { 4 7 /** 5 * path to xjconf: default is a pear install in an include path 8 * this method should return the path to you lib directory 9 * 10 * By default its /path/to/stubbles/lib. 11 * 12 * @return string 6 13 */ 7 const PATH_TO_XJCONF = 'XJConf'; 8 # const PATH_TO_XJCONF = '../../XJConfForPHP/trunk/XJConf'; 14 public static function getLibPath() 15 { 16 return realpath(dirname(__FILE__) . '/../../lib'); 17 } 9 18 } 10 19 ?> trunk/docroot/index.php
r101 r119 1 1 <?php 2 2 require '../config/php/config.php'; 3 #require '../lib/starReader.php'; 3 4 require '../src/main/php/net/stubbles/stubClassLoader.php'; 5 stubClassLoader::load('net.stubbles.star.StarLoader', 'net.stubbles.star.StarClassRegistry'); 6 stream_wrapper_register('star', 'StarLoader'); 4 7 stubClassLoader::load('net.stubbles.websites.PageFactory', 5 8 'net.stubbles.helper.stubRegistryFactory', trunk/src/main/php/net/stubbles/helper/stubXJConfLoader.php
r65 r119 5 5 * @author Frank Kleine <mikey@stubbles.net> 6 6 */ 7 require _once stubConfig::PATH_TO_XJCONF . '/XJConfLoader.php';7 require StarClassRegistry::getUriForClass('net.xjconf.XJConfLoader'); 8 8 XJConfLoader::load('XJConfClassLoader'); 9 9 /** trunk/src/test/run.php
r109 r119 13 13 require TEST_SRC_PATH . '/../main/php/org/simpletest/reporter.php'; 14 14 require TEST_SRC_PATH . '/../main/php/net/stubbles/stubClassLoader.php'; 15 stubClassLoader::load('net.stubbles.star.StarLoader', 'net.stubbles.star.StarClassRegistry'); 16 stream_wrapper_register('star', 'StarLoader'); 17 StarClassRegistry::addLibPath(stubConfig::getLibPath()); 15 18 /** 16 19 * Test runner for stubbles. … … 30 33 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/helper/HelperTestSuite.php'); 31 34 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/reflection/ReflectionTestSuite.php'); 35 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/websites/variantmanager/VariantManagerTestSuite.php'); 32 36 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/xml/XMLTestSuite.php'); 33 37 if (PHP_SAPI == 'cli') {
