Update README.md

This commit is contained in:
rsgrinko authored and GitHub committed 2021-04-28 23:01:07 +03:00
1 parent ddd25e0242
commit 5255e4debf
1 file changed
+16 -15
+16 -15
View File
@@ -3,19 +3,20 @@ A simple framework for building web applications
# class DataBase
When creating a class in the constructor, you must specify the data for connecting to the database<br>
$DataBase = new DataBase('server', 'db_user', 'db_password', 'db_name');
Supported methods:
public function query($sql, $params = [])
public function getItem($table, $where)
public function getItems($table, $where, $sort = '')
public function getAll($table, $sort = '', $params = [])
$DataBase = new DataBase('server', 'db_user', 'db_password', 'db_name');<br>
<br>
Supported methods:<br>
public function query($sql, $params = [])<br>
public function getItem($table, $where)<br>
public function getItems($table, $where, $sort = '')<br>
public function getAll($table, $sort = '', $params = [])<br>
<br>
<br>
# class Users
Used to work with users (authorization, logout, registration, receiving fields, etc.)
Supported methods:
public function Authorize($id)
public function getFields($id)
public function Logout()
Used to work with users (authorization, logout, registration, receiving fields, etc.)<br>
<br>
Supported methods:<br>
public function Authorize($id)<br>
public function getFields($id)<br>
public function Logout()<br>
<br>