예제 #1
0
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new DatabaseInit();
     }
     return self::$instance;
 }
예제 #2
0
 public function __construct()
 {
     $this->db = parent::getInstance();
     $this->mergeMessage();
 }