Changeset 1233

Show
Ignore:
Timestamp:
01/13/08 12:45:29 (7 months ago)
Author:
mikey
Message:

continued refactoring #119: fixed experiments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/experiments/general/xsl/transform.php

    r202 r1233  
    5858 
    5959 
    60 stubClassLoader::load('net.stubbles.xml.xsl.stubXSLProcessor'); 
     60stubClassLoader::load('net::stubbles::xml::xsl::stubXSLProcessor'); 
    6161$xslProcessor = new stubXSLProcessor(); 
    6262$doc = DOMDocument::load($xmlFile); 
     
    6969    $xslProcessor->setParameter('', 'page', $args->getValue('page')); 
    7070} 
    71 stubClassLoader::load('net.stubbles.xml.stubDomXMLStreamWriter'); 
    72 stubClassLoader::load('net.stubbles.xml.xsl.util.stubXSLImageDimensions'); 
     71stubClassLoader::load('net::stubbles::xml::stubDomXMLStreamWriter'); 
     72stubClassLoader::load('net::stubbles::xml::xsl::util::stubXSLImageDimensions'); 
    7373$xslProcessor->registerCallback('image', new stubXSLImageDimensions(new stubDomXMLStreamWriter())); 
    7474 
    75 stubClassLoader::load('net.stubbles.xml.stubXMLXIncludeStreamWrapper'); 
     75stubClassLoader::load('net::stubbles::xml::stubXMLXIncludeStreamWrapper'); 
    7676stubXMLXIncludeStreamWrapper::register(); 
    7777stubXMLXIncludeStreamWrapper::setXSLProcessor($xslProcessor); 
     
    8282print $resultDoc->saveXML(); 
    8383 
    84 $dirIt = new DirectoryIterator(dirname(__FILE__) . '/cache/xml'); 
     84$dirIt = new DirectoryIterator(dirname(__FILE__) . '/cache/xml/xinc'); 
    8585foreach ($dirIt as $file) { 
    8686    if ($file->isDot() == true || $file->getFilename() == '.svn') { 
  • trunk/experiments/people/mikey/classloader/stubFileSystemClassLoader.php

    r1028 r1233  
    4040    protected function translateNameToFileName($name) 
    4141    { 
    42         return $this->path . str_replace('.', DIRECTORY_SEPARATOR, $name); 
     42        return $this->path . str_replace('::', DIRECTORY_SEPARATOR, $name); 
    4343    } 
    4444 
     
    5151    protected function translateFileNameToName($fileName) 
    5252    { 
    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))); 
    5454    } 
    5555 
  • trunk/experiments/people/mikey/persistence/deleteEntry.php

    r1225 r1233  
    99require_once 'connection.php'; 
    1010 
    11 $newsArticle = new MyNewsArticle(); 
    12 $newsArticle->setId(1); 
    1311$finder = stubDatabaseFinder::getInstance(stubDatabaseConnectionPool::getConnection()); 
    14 $finder->findByPrimaryKeys($newsArticle); 
     12$newsArticle = $finder->findByPrimaryKeys(new stubReflectionClass('MyNewsArticle'), array('id' => 1)); 
    1513echo "Existing before eraser:\n"; 
    1614var_dump($newsArticle); 
     
    2119var_dump($newsArticle); 
    2220 
    23 $deleted = $eraser->deleteByCriterion(new stubEqualCriterion('status', 5), 'MyNewsArticle'); 
     21$deleted = $eraser->deleteByCriterion(new stubEqualCriterion('status', 5), new stubReflectionClass('MyNewsArticle')); 
    2422echo 'Deleted ' . $deleted . ' entries.' . "\n"; 
    2523?> 
  • trunk/experiments/people/mikey/prototype/stubPrototype.php

    r984 r1233  
    77 * @subpackage  reflection_prototype 
    88 */ 
    9 stubClassLoader::load('net.stubbles.reflection.reflection', 
    10                       'net.stubbles.util.exceptions.stubIllegalArgumentException' 
     9stubClassLoader::load('net::stubbles::reflection::reflection', 
     10                      'net::stubbles::lang::exceptions::stubIllegalArgumentException' 
    1111); 
    1212/** 
  • trunk/experiments/people/schst/ioc/provider.php

    r1222 r1233  
    2121class MyProvider extends stubBaseObject implements stubInjectionProvider { 
    2222 
    23     public function get(stubReflectionClass $type) { 
     23    public function get(stubBaseReflectionClass $type) { 
    2424        if ($type->getName() === 'Person') { 
    2525            return new PersonImpl('Stephan'); 
  • trunk/experiments/people/schst/xml/errors.php

    r829 r1233  
    1616 
    1717 
    18 stubClassLoader::load('net.stubbles.xml.stubDomXMLStreamWriter'); 
     18stubClassLoader::load('net::stubbles::xml::stubDomXMLStreamWriter'); 
    1919 
    2020$writer = new stubDomXMLStreamWriter();