Зачатки MVC

This commit is contained in:
lopar
2020-07-04 13:49:43 +03:00
parent 25a6f17d7e
commit c6316820a0
6 changed files with 146 additions and 3 deletions

13
models/PresentsModel.php Normal file
View 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);
}
}