Зачатки MVC
This commit is contained in:
13
models/PresentsModel.php
Normal file
13
models/PresentsModel.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Author: lopiu
|
||||
* Date: 04.07.2020
|
||||
* Time: 13:17
|
||||
*/
|
||||
|
||||
class PresentsModel
|
||||
{
|
||||
public function getAllPresents($user_id) {
|
||||
return db::c()->query('SELECT sender_id, image FROM `users_presents` WHERE owner_id = ?i', $user_id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user