Beispiel #1
0
 public static function getInstance()
 {
     if (self::$Instance == NULL) {
         $class = __CLASS__;
         self::$Instance = new $class();
     }
     return self::$Instance;
 }
Beispiel #2
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     require_once DIR_CONFIG . 'ssb_library/ssb_seo_controller.php';
     $this->seoController = seoController::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_helper.php';
     $this->ssb_helper = ssb_helper::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_data.php';
     $this->ssb_data = ssb_data::getInstance();
     $this->ssb_setting = $this->ssb_data->getSetting();
     list($this->totalLanguages, $this->def_lang_code) = $this->seoController->getDefaultLanguageData();
     list($this->l_code_session, $this->l_id_session) = $this->seoController->setLanguageData();
 }