public static function getInstance() { if (self::$Instance == NULL) { $class = __CLASS__; self::$Instance = new $class(); } return self::$Instance; }
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(); }
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(); }