Example #1
0
 public static function getInstance()
 {
     if (self::$Instance == NULL) {
         $class = __CLASS__;
         self::$Instance = new $class();
     }
     return self::$Instance;
 }
Example #2
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();
 }
Example #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/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();
 }
Example #4
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);");
     }
 }