Changeset 680
- Timestamp:
- 05/29/07 20:45:42 (1 year ago)
- Files:
-
- trunk/config-examples (copied) (copied from trunk/config)
- trunk/config/php/config-dist.php (deleted)
- trunk/config/xml/json-rpc-service-dist.xml (deleted)
- trunk/examples/bootstrap-stubbles.php (modified) (1 diff)
- trunk/examples/core/error-simple.php (modified) (1 diff)
- trunk/examples/events/index.php (modified) (3 diffs)
- trunk/examples/events/queue.php (modified) (2 diffs)
- trunk/examples/foreignClassLoaders/index.php (modified) (1 diff)
- trunk/examples/ipc07/csvWriter.php (modified) (1 diff)
- trunk/examples/ipc07/xmlSerializer.php (modified) (1 diff)
- trunk/examples/json-rpc/jsonrpc.php (modified) (1 diff)
- trunk/examples/logging/index.php (modified) (1 diff)
- trunk/examples/variants/variants.php (modified) (1 diff)
- trunk/examples/xml/serializer.php (modified) (1 diff)
- trunk/examples/xml/streamWriter.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/bootstrap-stubbles.php
r622 r680 1 1 <?php 2 require dirname(__FILE__) . '/../config-examples/php/config.php'; 3 2 4 if (file_exists(stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'stubbles.php') == true) { 3 5 require stubConfig::getLibPath() . DIRECTORY_SEPARATOR . 'stubbles.php'; trunk/examples/core/error-simple.php
r673 r680 12 12 */ 13 13 14 require '../../config/php/config.php';15 14 require '../bootstrap-stubbles.php'; 16 15 stubClassLoader::load('net.stubbles.util.errorhandler.stubIllegalArgumentErrorHandler', trunk/examples/events/index.php
r631 r680 3 3 highlight_file(__FILE__); 4 4 5 require '../../config/php/config.php';6 5 require '../bootstrap-stubbles.php'; 7 6 stubClassLoader::load('net.stubbles.events.events', … … 19 18 $eventDispatcher->register(new BlackList(), 'onLogin'); 20 19 $eventDispatcher->register(new UserLoginLogging(), 'onLogin'); 21 20 22 21 // now we simply authenticate users 23 22 $auth = new Auth(); … … 26 25 $auth->login('schst', 'evenmoresecret'); 27 26 var_dump($auth->isValid()); 28 27 29 28 // display logs 30 29 echo '<br /><br />The logfile:<br />'; trunk/examples/events/queue.php
r627 r680 2 2 echo 'The PHP code:<br />'; 3 3 highlight_file(__FILE__); 4 require '../../config/php/config.php';5 4 require '../bootstrap-stubbles.php'; 6 5 stubClassLoader::load('net.stubbles.events.events', … … 39 38 // get an instance of the event dispatcher 40 39 $eventDispatcher = stubEventDispatcher::getInstance(); 41 40 42 41 $request = new stubWebRequest(); 43 // we trigger the event before the listener is registered but the 44 // fourth parameter says that the event should be queued and all 42 // we trigger the event before the listener is registered but the 43 // fourth parameter says that the event should be queued and all 45 44 // listeners registered for this event subsequently will be notified 46 45 $eventDispatcher->trigger('onRequestCreated', $request, array(), true); 47 46 48 47 // now we register the listener that will be notified instantly 49 48 $eventDispatcher->register(new ExampleListener(), 'onRequestCreated'); trunk/examples/foreignClassLoaders/index.php
r625 r680 3 3 highlight_file(__FILE__); 4 4 5 require '../../config/php/config.php';6 5 require '../bootstrap-stubbles.php'; 7 6 stubClassLoader::load('net.stubbles.util.ext.stubXPClassLoader'); trunk/examples/ipc07/csvWriter.php
r670 r680 7 7 * @uses stubXMLSerializer 8 8 */ 9 require '../../config/php/config.php';10 9 require '../bootstrap-stubbles.php'; 11 10 stubClassLoader::load('net.stubbles.reflection.reflection'); trunk/examples/ipc07/xmlSerializer.php
r670 r680 7 7 * @uses stubXMLSerializer 8 8 */ 9 require '../../config/php/config.php';10 9 require '../bootstrap-stubbles.php'; 11 10 stubClassLoader::load('net.stubbles.xml.serializer.stubXMLSerializer', trunk/examples/json-rpc/jsonrpc.php
r622 r680 1 1 <?php 2 require '../../config/php/config.php';3 2 require '../bootstrap-stubbles.php'; 4 3 stubClassLoader::load('net.stubbles.websites.processors.stubJsonRpcProcessor', trunk/examples/logging/index.php
r626 r680 3 3 highlight_file(__FILE__); 4 4 5 require '../../config/php/config.php';6 5 require '../bootstrap-stubbles.php'; 7 6 stubClassLoader::load('net.stubbles.ipo.request.stubWebRequest', trunk/examples/variants/variants.php
r665 r680 7 7 * @see http://www.stubbles.net/wiki/Docs/MVC/Variant 8 8 */ 9 require '../../config/php/config.php';10 9 require '../bootstrap-stubbles.php'; 11 10 trunk/examples/xml/serializer.php
r660 r680 4 4 * 5 5 * @author Stephan Schmidt <schst@stubbles.net> 6 * @ seehttp://www.stubbles.net/wiki/Docs/XMLSerializer6 * @link http://www.stubbles.net/wiki/Docs/XMLSerializer 7 7 * @uses stubXMLSerializer 8 8 */ 9 require '../../config/php/config.php';10 9 require '../bootstrap-stubbles.php'; 11 10 stubClassLoader::load('net.stubbles.xml.serializer.stubXMLSerializer', trunk/examples/xml/streamWriter.php
r656 r680 4 4 * 5 5 * @author Stephan Schmidt <schst@stubbles.net> 6 * @ seehttp://www.stubbles.net/wiki/Docs/XMLStreamWriter6 * @link http://www.stubbles.net/wiki/Docs/XMLStreamWriter 7 7 * @uses stubXMLStreamWriterFactory 8 8 * @uses stubXMLStreamWriter 9 9 */ 10 require '../../config/php/config.php';11 10 require '../bootstrap-stubbles.php'; 12 11 stubClassLoader::load('net.stubbles.xml.stubXMLStreamWriterFactory');
