Пример #1
0
 public static function init($connectString, $user = '', $password = '')
 {
     self::$db = new PDO($connectString, $user, $password);
 }
Пример #2
0
 private static function connectDB()
 {
     if (!self::$db) {
         self::$db = EasyModel::getDB();
     }
 }