Esempio n. 1
0
 public static function isThemeExists($theme, $accessType = false)
 {
     if (empty($theme)) {
         return false;
     }
     if ($accessType === false) {
         $accessType = SJB_System::getSystemSettings('SYSTEM_ACCESS_TYPE');
     }
     $up_path = '';
     if ($accessType === 'admin') {
         $up_path = '../';
     }
     $themeExists = is_dir($up_path . SJB_PathManager::getAbsoluteThemesPath($accessType) . $theme);
     SJB_Event::dispatch('IsThemeExists', $themeExists, true);
     return $themeExists;
 }
Esempio n. 2
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 . '/';
 }
Esempio n. 3
0
 function getCommandScriptAbsolutePath($module, $command)
 {
     $script_name = $this->_getCommandScriptName($module, $command);
     if ($script_name) {
         return SJB_PathManager::getAbsoluteCommandsPath($module) . $script_name;
     }
 }