Exemple #1
0
 public static function getInstance()
 {
     if (self::$Instance == NULL) {
         $class = __CLASS__;
         self::$Instance = new $class();
     }
     return self::$Instance;
 }
Exemple #2
0
 function __construct()
 {
     global $registry;
     parent::__construct($registry);
     $this->verOC = $this->getVerOC();
     require_once DIR_CONFIG . 'ssb_library/ssb_default.php';
     $this->ssb_default = ssb_default::getInstance();
     require_once DIR_CONFIG . 'ssb_library/ssb_helper.php';
     $this->ssb_helper = ssb_helper::getInstance();
 }