Пример #1
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     require_once DIR_CONFIG . 'ssb_library/catalog/tools/path_controller.php';
     $this->pathController = pathController::getInstance();
 }
Пример #2
0
 public static function getInstance()
 {
     if (self::$Instance == NULL) {
         $class = __CLASS__;
         self::$Instance = new $class();
     }
     return self::$Instance;
 }
Пример #3
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     require_once DIR_CONFIG . 'ssb_library/ssb_helper.php';
     $this->ssb_helper = ssb_helper::getInstance();
     require_once DIR_CONFIG . 'ssb_library/catalog/tools/path_controller.php';
     $this->pathController = pathController::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_data.php';
     $this->ssb_data = ssb_data::getInstance();
     $this->ssb_setting = $this->ssb_data->getSetting();
     $this->totalLanguages = isset($_SESSION['totalLanguages']) ? $_SESSION['totalLanguages'] : $this->ssb_helper->getActiveLang();
     $this->def_lang_code = isset($_SESSION['def_lang_code']) ? $_SESSION['def_lang_code'] : $this->ssb_helper->getDefaultLanguage();
 }