예제 #1
0
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new MysqlDatabaseManager(MysqlConnection::getInstance());
         self::$_instance->_connection->Connect();
     }
     return self::$_instance;
 }
예제 #2
0
파일: Model.php 프로젝트: popytka008/work
 /**
  * Model constructor.
  */
 public function __construct()
 {
     $this->_databaseManager = MysqlDatabaseManager::getInstance();
 }