This commit is contained in:
rsgrinko committed 2021-04-28 23:00:43 +03:00
1 parent 5d36b2adb2
commit 2dd7557cd3
1 file changed
+17 -16
+17 -16
View File
@@ -2,20 +2,21 @@
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
$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 = [])
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');<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>