예제 #1
0
 /**
  * returns absolute access path
  *
  * @param string $module_name Module name
  * @return string Path to module
  */
 public static function getAbsoluteModulePath($module_name)
 {
     return SJB_PathManager::getAbsoluteModulesPath() . $module_name . '/';
 }
예제 #2
0
 function readModuleConfigs()
 {
     $modulesPath = SJB_PathManager::getAbsoluteModulesPath();
     $iterator = new DirectoryIterator($modulesPath);
     foreach ($iterator as $fileinfo) {
         if ($fileinfo->isDir() && !in_array($fileinfo->getFilename(), array(".", "..", ".svn"))) {
             $this->includeModule($fileinfo->getPath(), $fileinfo->getFilename());
         }
     }
 }