b9b4c01cf0
Signed-off-by: lopar <lopar.4ever@gmail.com>
22 lines
429 B
PHP
22 lines
429 B
PHP
<?php
|
|
/**
|
|
* Author: lopiu
|
|
* Date: 04.07.2020
|
|
* Time: 13:17
|
|
*/
|
|
namespace Battles\Models;
|
|
|
|
use Battles\Database\Db;
|
|
use Battles\User;
|
|
|
|
|
|
class Presents
|
|
{
|
|
public function getAll($user_id = null)
|
|
{
|
|
if (is_null($user_id)) {
|
|
$user_id = User::getInstance()->getId();
|
|
}
|
|
return Db::getInstance()->execute('SELECT sender_id, image FROM `users_presents` WHERE owner_id = ?', $user_id);
|
|
}
|
|
} |