Changeset 1233
- Timestamp:
- 01/13/08 12:45:29 (7 months ago)
- Files:
-
- trunk/experiments/general/xsl/transform.php (modified) (3 diffs)
- trunk/experiments/people/mikey/classloader/stubFileSystemClassLoader.php (modified) (2 diffs)
- trunk/experiments/people/mikey/persistence/deleteEntry.php (modified) (2 diffs)
- trunk/experiments/people/mikey/prototype/stubPrototype.php (modified) (1 diff)
- trunk/experiments/people/schst/ioc/provider.php (modified) (1 diff)
- trunk/experiments/people/schst/xml/errors.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/experiments/general/xsl/transform.php
r202 r1233 58 58 59 59 60 stubClassLoader::load('net .stubbles.xml.xsl.stubXSLProcessor');60 stubClassLoader::load('net::stubbles::xml::xsl::stubXSLProcessor'); 61 61 $xslProcessor = new stubXSLProcessor(); 62 62 $doc = DOMDocument::load($xmlFile); … … 69 69 $xslProcessor->setParameter('', 'page', $args->getValue('page')); 70 70 } 71 stubClassLoader::load('net .stubbles.xml.stubDomXMLStreamWriter');72 stubClassLoader::load('net .stubbles.xml.xsl.util.stubXSLImageDimensions');71 stubClassLoader::load('net::stubbles::xml::stubDomXMLStreamWriter'); 72 stubClassLoader::load('net::stubbles::xml::xsl::util::stubXSLImageDimensions'); 73 73 $xslProcessor->registerCallback('image', new stubXSLImageDimensions(new stubDomXMLStreamWriter())); 74 74 75 stubClassLoader::load('net .stubbles.xml.stubXMLXIncludeStreamWrapper');75 stubClassLoader::load('net::stubbles::xml::stubXMLXIncludeStreamWrapper'); 76 76 stubXMLXIncludeStreamWrapper::register(); 77 77 stubXMLXIncludeStreamWrapper::setXSLProcessor($xslProcessor); … … 82 82 print $resultDoc->saveXML(); 83 83 84 $dirIt = new DirectoryIterator(dirname(__FILE__) . '/cache/xml ');84 $dirIt = new DirectoryIterator(dirname(__FILE__) . '/cache/xml/xinc'); 85 85 foreach ($dirIt as $file) { 86 86 if ($file->isDot() == true || $file->getFilename() == '.svn') { trunk/experiments/people/mikey/classloader/stubFileSystemClassLoader.php
r1028 r1233 40 40 protected function translateNameToFileName($name) 41 41 { 42 return $this->path . str_replace(' .', DIRECTORY_SEPARATOR, $name);42 return $this->path . str_replace('::', DIRECTORY_SEPARATOR, $name); 43 43 } 44 44 … … 51 51 protected function translateFileNameToName($fileName) 52 52 { 53 return str_replace(DIRECTORY_SEPARATOR, ' .', str_replace('.php', '', str_replace($this->path, '', $fileName)));53 return str_replace(DIRECTORY_SEPARATOR, '::', str_replace('.php', '', str_replace($this->path, '', $fileName))); 54 54 } 55 55 trunk/experiments/people/mikey/persistence/deleteEntry.php
r1225 r1233 9 9 require_once 'connection.php'; 10 10 11 $newsArticle = new MyNewsArticle();12 $newsArticle->setId(1);13 11 $finder = stubDatabaseFinder::getInstance(stubDatabaseConnectionPool::getConnection()); 14 $ finder->findByPrimaryKeys($newsArticle);12 $newsArticle = $finder->findByPrimaryKeys(new stubReflectionClass('MyNewsArticle'), array('id' => 1)); 15 13 echo "Existing before eraser:\n"; 16 14 var_dump($newsArticle); … … 21 19 var_dump($newsArticle); 22 20 23 $deleted = $eraser->deleteByCriterion(new stubEqualCriterion('status', 5), 'MyNewsArticle');21 $deleted = $eraser->deleteByCriterion(new stubEqualCriterion('status', 5), new stubReflectionClass('MyNewsArticle')); 24 22 echo 'Deleted ' . $deleted . ' entries.' . "\n"; 25 23 ?> trunk/experiments/people/mikey/prototype/stubPrototype.php
r984 r1233 7 7 * @subpackage reflection_prototype 8 8 */ 9 stubClassLoader::load('net .stubbles.reflection.reflection',10 'net .stubbles.util.exceptions.stubIllegalArgumentException'9 stubClassLoader::load('net::stubbles::reflection::reflection', 10 'net::stubbles::lang::exceptions::stubIllegalArgumentException' 11 11 ); 12 12 /** trunk/experiments/people/schst/ioc/provider.php
r1222 r1233 21 21 class MyProvider extends stubBaseObject implements stubInjectionProvider { 22 22 23 public function get(stub ReflectionClass $type) {23 public function get(stubBaseReflectionClass $type) { 24 24 if ($type->getName() === 'Person') { 25 25 return new PersonImpl('Stephan'); trunk/experiments/people/schst/xml/errors.php
r829 r1233 16 16 17 17 18 stubClassLoader::load('net .stubbles.xml.stubDomXMLStreamWriter');18 stubClassLoader::load('net::stubbles::xml::stubDomXMLStreamWriter'); 19 19 20 20 $writer = new stubDomXMLStreamWriter();
