Changeset 630

Show
Ignore:
Timestamp:
04/25/07 23:10:07 (2 years ago)
Author:
schst
Message:

"Did not find" instead of "Did not found",
whitespace fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/ext/stubXPClassLoader.php

    r448 r630  
    2929     */ 
    3030    protected static $initialized = false; 
    31      
     31 
    3232    /** 
    3333     * constructor 
    34      *  
    35      * It is possible to select a version of the XP-Framework. It is not  
    36      * possible to use a version lower than 5.0.0. If no version is specified  
    37      * a search in the lib path is done where the highest available version  
    38      * will be used. Only one version can be loaded at once, a second  
    39      * instantiation of this class will yield the same result like the first  
     34     * 
     35     * It is possible to select a version of the XP-Framework. It is not 
     36     * possible to use a version lower than 5.0.0. If no version is specified 
     37     * a search in the lib path is done where the highest available version 
     38     * will be used. Only one version can be loaded at once, a second 
     39     * instantiation of this class will yield the same result like the first 
    4040     * one regardless of the value of $version. 
    41      *  
     41     * 
    4242     * @param   string  $version  optional  the version to use 
    4343     * @throws  stubIllegalArgumentException 
     
    4949            return; 
    5050        } 
    51          
     51 
    5252        $libPath = stubConfig::getLibPath() . DIRECTORY_SEPARATOR; 
    5353        if (null != $version && version_compare($version, '5.0.0', '<') == true) { 
     
    6262                    continue; 
    6363                } 
    64                  
     64 
    6565                $testVersion = str_replace('xp-rt-', '', str_replace('.xar', '', $file->getFilename())); 
    6666                if (version_compare($testVersion, $version, '>') == true) { 
     
    6868                } 
    6969            } 
    70              
     70 
    7171            if (version_compare($version, '5.0.0', '<') == true) { 
    72                 throw new stubException('Did not found a copy of the XP-Framework 5.0.0 or higher.'); 
     72                throw new stubException('Did not find a copy of the XP-Framework 5.0.0 or higher.'); 
    7373            } 
    7474        } 
    75          
     75 
    7676        set_include_path(get_include_path() . PATH_SEPARATOR . $libPath . 'xp-rt-' . $version . '.xar'); 
    7777        require $libPath . 'lang.base.php'; 
    7878        self::$initialized = true; 
    7979    } 
    80      
     80 
    8181    /** 
    8282     * sets the namespace where this classloader is responsible for 
     
    8888        $this->namespace = $namespace; 
    8989    } 
    90      
     90 
    9191    /** 
    9292     * returns the namespace where this classloader is responsible for 
     
    9898        return $this->namespace; 
    9999    } 
    100      
     100 
    101101    /** 
    102102     * loads the given class 
     
    111111            return; 
    112112        } 
    113          
     113 
    114114        uses(str_replace($this->namespace . '.', '', $fqClassName)); 
    115115    }