Exemplo n.º 1
0
 /**
  * 
  *
  * @param string $className
  * @return array
  */
 public function getFullClassMapPaths($className)
 {
     $classMapPaths = array();
     if (($pos = strpos($className, INNER_JAVA_CLASS_SEPARATOR)) !== false) {
         $className = substr($className, 0, $pos);
     }
     $classNameToPath = str_replace('.', DIRECTORY_SEPARATOR, $className) . parent::getFilePostfix();
     //echo '<br><br>Looking for ' . $className;
     foreach (parent::getClassMapPaths() as $classMapPath) {
         $classMapPaths[] = $classMapPath . DIRECTORY_SEPARATOR . $classNameToPath;
     }
     return $classMapPaths;
 }
 /**
  * 
  *
  * @param string $className
  * @return array
  */
 public function getFullClassMapPaths($className)
 {
     $classMapPaths = array();
     if (($pos = strpos($className, INNER_JAVA_CLASS_SEPARATOR)) !== false) {
         // since 1.4 - depracted (od tej chwili kazda inner classa to plik postaci ParentClass___InnerClass.class.php
         if (GWTPHPContext::getInstance()->getGwtCompatibilityVersion() < GWTPHPContext::GWT_VERSION_1_5_0) {
             $className = substr($className, 0, $pos);
         } else {
             // since 1.5
             $className = str_replace(INNER_JAVA_CLASS_SEPARATOR, INNER_PHP_CLASS_SEPARATOR, $className);
         }
     }
     $classNameToPath = str_replace('.', DIRECTORY_SEPARATOR, $className) . parent::getFilePostfix();
     //echo '<br><br>Looking for ' . $className;
     foreach (parent::getClassMapPaths() as $classMapPath) {
         $classMapPaths[] = $classMapPath . DIRECTORY_SEPARATOR . $classNameToPath;
     }
     return $classMapPaths;
 }