Разбивка inf.php по классам.

This commit is contained in:
lopar
2020-07-06 00:16:22 +03:00
parent 3317ab845d
commit 461cec852d
7 changed files with 92 additions and 76 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
/**
* Author: lopiu
* Date: 05.07.2020
* Time: 22:38
*/
class UserLogModel
{
protected $DB;
public function __construct(int $user_id)
{
$this->DB = db::c()->query('SELECT * FROM users_logs WHERE user_id = ?i ORDER BY `id` ASC', $user_id);
}
public function getUserLog()
{
return $this->DB;
}
}