battles/models/PresentsModel.php

13 lines
253 B
PHP
Raw Normal View History

2020-07-04 10:49:43 +00:00
<?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);
}
}