コード例 #1
0
 /**
  * init globals
  */
 public static function initGlobals($pluginFolder)
 {
     UniteProviderFunctionsUG::initGlobalsBase($pluginFolder);
     self::$is_admin == false;
     //this var set from admin object
     self::$pathSettings = self::$pathPlugin . "settings/";
     self::$pathGalleries = self::$pathPlugin . "galleries/";
     self::$path_elfinder = self::$pathPlugin . "libraries/elfinder/";
     self::$pathTemplates = self::$pathPlugin . "views/templates/";
     self::$pathViews = self::$pathPlugin . "views/";
     self::$pathHelpersViews = self::$pathPlugin . "helpers/views/";
     self::$pathHelpersTemplates = self::$pathPlugin . "helpers/templates/";
     self::$pathHelpersClasses = self::$pathPlugin . "helpers/classes/";
     self::$pathHelpersSettings = self::$pathPlugin . "helpers/settings/";
     UniteFunctionsUG::validateDir(self::$pathGalleries);
     self::$filepathItemSettings = self::$pathSettings . "item_settings.php";
     self::$urlGalleries = self::$urlPlugin . "galleries/";
     self::$url_elfinder = self::$urlPlugin . "libraries/elfinder/";
     self::$url_provider = self::$urlPlugin . "inc_php/framework/provider/";
     self::initClientSideText();
 }