Exemple #1
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     require_once DIR_CONFIG . 'ssb_library/ssb_helper.php';
     $this->ssb_helper = ssb_helper::getInstance();
 }
Exemple #2
0
 public static function getInstance()
 {
     if (self::$Instance == NULL) {
         $class = __CLASS__;
         self::$Instance = new $class();
     }
     return self::$Instance;
 }
Exemple #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/ssb_data.php';
     $this->ssb_data = ssb_data::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_table.php';
     $this->ssb_table = ssb_table::getInstance();
     $this->ssb_setting = $this->ssb_data->getSetting();
 }
Exemple #4
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     require_once DIR_CONFIG . 'ssb_library/admin/generators/ssb_review.php';
     $this->ssb_review = ssb_review::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();
     require_once DIR_CONFIG . 'ssb_library/admin/generators/gen_helper.php';
     $this->gen_helper = gen_helper::getInstance();
 }
Exemple #5
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();
 }
Exemple #6
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();
 }
Exemple #7
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     require_once DIR_CONFIG . 'ssb_library/ssb_data.php';
     $this->ssb_data = ssb_data::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_table.php';
     $this->ssb_table = ssb_table::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_helper.php';
     $this->ssb_helper = ssb_helper::getInstance();
     $this->verOC = $this->ssb_helper->getVerOC();
     require_once DIR_CONFIG . 'ssb_library/ssb_category_template.php';
     $this->ssb_category_template = ssb_category_template::getInstance();
 }
Exemple #8
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/admin/generators/gen_helper.php';
     $this->gen_helper = gen_helper::getInstance();
     require_once DIR_CONFIG . 'ssb_library/admin/transliteration/transliteration.php';
     $this->transliteration = transliteration::getInstance();
     require_once DIR_CONFIG . 'ssb_library/glob_set.php';
     $this->glob_set = glob_set::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_data.php';
     $this->ssb_data = ssb_data::getInstance();
 }
Exemple #9
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/ssb_data.php';
     $this->ssb_data = ssb_data::getInstance();
     require_once DIR_CONFIG . 'ssb_library/admin/generators/gen_helper.php';
     $this->gen_helper = gen_helper::getInstance();
     $sql = "SHOW INDEX FROM " . DB_PREFIX . "product_description WHERE Key_name='relatedProducts'";
     $query = $this->db->query($sql);
     if (!count($query->rows)) {
         $this->db->query("ALTER TABLE " . DB_PREFIX . "product_description ENGINE = MYISAM;");
         $this->db->query("CREATE FULLTEXT INDEX relatedProducts ON " . DB_PREFIX . "product_description (name, description);");
     }
 }