コード例 #1
0
 public function getFullClassPaths($className)
 {
     $classPaths = array();
     if (($pos = strpos($className, INNER_PHP_CLASS_SEPARATOR)) !== false) {
         $className = substr($className, 0, $pos);
     }
     $classNameToPath = str_replace('.', DIRECTORY_SEPARATOR, $className) . parent::getFilePostfix();
     foreach (parent::getClassPaths() as $rootPath) {
         $classPaths[] = $rootPath . DIRECTORY_SEPARATOR . $classNameToPath;
     }
     //		$r = parent::getRootPath().'/';
     //		$d = str_replace('.', DIRECTORY_SEPARATOR ,$className);
     //		$p = parent::getFilePostfix();
     //		$cmd = $r.$d.$p;
     return $classPaths;
     //return $this->rootPath.str_replace('.', DIRECTORY_SEPARATOR ,$className).parent::getFilePostfix();
 }
コード例 #2
0
 public function getFullClassPaths($className)
 {
     $classPaths = array();
     if (($pos = strpos($className, INNER_PHP_CLASS_SEPARATOR)) !== false) {
         if (GWTPHPContext::getInstance()->getGwtCompatibilityVersion() < GWTPHPContext::GWT_VERSION_1_5_0) {
             $className = substr($className, 0, $pos);
         } else {
             // since 1.5
             $className = JavaSignatureUtil::innecJavaClassNameToPHPClassName($className);
         }
     }
     $classNameToPath = str_replace('.', DIRECTORY_SEPARATOR, $className) . parent::getFilePostfix();
     foreach (parent::getClassPaths() as $rootPath) {
         $classPaths[] = $rootPath . DIRECTORY_SEPARATOR . $classNameToPath;
     }
     //		$r = parent::getRootPath().'/';
     //		$d = str_replace('.', DIRECTORY_SEPARATOR ,$className);
     //		$p = parent::getFilePostfix();
     //		$cmd = $r.$d.$p;
     return $classPaths;
     //return $this->rootPath.str_replace('.', DIRECTORY_SEPARATOR ,$className).parent::getFilePostfix();
 }
コード例 #3
0
 public function __construct(array $prefixes, array $directories)
 {
     parent::__construct();
     $this->directories = $directories;
     $this->prefixes = $prefixes;
 }
コード例 #4
0
 public function __construct($directory, array $map)
 {
     parent::__construct();
     $this->directory = $directory;
     $this->map = $map;
 }
コード例 #5
0
 public function __construct($directory, $extension = '.php')
 {
     parent::__construct();
     $this->directory = $directory;
     $this->extension = $extension;
 }