Changeset 622
- Timestamp:
- 04/25/07 00:07:20 (1 year ago)
- Files:
-
- trunk/examples/bootstrap-stubbles.php (added)
- trunk/examples/foreignClassLoaders/index.php (modified) (1 diff)
- trunk/examples/json-rpc/index.php (modified) (1 diff)
- trunk/examples/json-rpc/jsonrpc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/foreignClassLoaders/index.php
r618 r622 4 4 5 5 require '../../config/php/config.php'; 6 require stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'stubbles.php';6 require '../bootstrap-stubbles.php'; 7 7 stubClassLoader::load('net.stubbles.util.ext.stubXPClassLoader'); 8 8 stubClassLoader::registerForeignClassLoader(new stubXPClassLoader()); trunk/examples/json-rpc/index.php
r620 r622 60 60 61 61 <fieldset> 62 <legend>S econdJSON-RPC example</legend>62 <legend>Simple JSON-RPC example</legend> 63 63 A: <input type="text" id="a" size="3"/> B: <input type="text" id="b" size="3"/><br/> 64 64 <input type="button" onclick="math.add(document.getElementById('a').value, document.getElementById('b').value);" value="A+B"/> trunk/examples/json-rpc/jsonrpc.php
r600 r622 1 1 <?php 2 2 require '../../config/php/config.php'; 3 require '../../src/main/php/net/stubbles/stubClassLoader.php'; 4 require '../../lib/starReader.php'; 5 3 require '../bootstrap-stubbles.php'; 6 4 stubClassLoader::load('net.stubbles.websites.processors.stubJsonRpcProcessor', 7 5 'net.stubbles.websites.stubFrontController', 8 6 'net.stubbles.ipo.interceptors.stubInterceptorXJConfInitializer', 9 'net.stubbles.websites.processors.stubProcessorResolverXJConfFactory',10 'net.stubbles.util.stubRegistryXJConfInitializer'7 'net.stubbles.websites.processors.stubProcessorResolverXJConfFactory', 8 'net.stubbles.util.stubRegistryXJConfInitializer' 11 9 ); 12 10 … … 14 12 { 15 13 public static function main() 16 { 17 $controller = new stubFrontController(new stubRegistryXJConfInitializer(),18 new stubInterceptorXJConfInitializer(),19 new stubProcessorResolverXJConfFactory());20 $controller->process();14 { 15 $controller = new stubFrontController(new stubRegistryXJConfInitializer(), 16 new stubInterceptorXJConfInitializer(), 17 new stubProcessorResolverXJConfFactory()); 18 $controller->process(); 21 19 } 22 20 }
