public static function getInstance() { if (!self::$_instance) { self::$_instance = new MysqlDatabaseManager(MysqlConnection::getInstance()); self::$_instance->_connection->Connect(); } return self::$_instance; }
/** * Model constructor. */ public function __construct() { $this->_databaseManager = MysqlDatabaseManager::getInstance(); }