コード例 #1
0
 /**
  * Callback for class autoloading in linux flavours.
  * 
  * @param string $classPath Path of the class to load
  * 
  * @return void
  */
 public function autoLoadNonWindows($classPath)
 {
     $dirName = "library";
     if ($classPath == ServiceConfig::GetServiceInfo("classname")) {
         $dirName = "services";
         $classPath = ServiceConfig::GetServiceInfo("path") . "/" . $classPath;
     }
     $classPath = str_replace("\\", "/", $classPath);
     include_once self::$basePath . "/" . $dirName . "/" . $classPath . self::FILEEXTENSION;
 }