Фикс анкеты персонажа.
This commit is contained in:
28
classes/u.php
Normal file
28
classes/u.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2018.
|
||||
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
||||
* Project name: Battles-Game
|
||||
*/
|
||||
|
||||
class u
|
||||
{
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* u constructor.
|
||||
* @param $playerId
|
||||
*/
|
||||
public function __construct($playerId)
|
||||
{
|
||||
$this->id = $playerId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function i()
|
||||
{
|
||||
return db::c()->query('SELECT * FROM `users` WHERE `id` = ?i',$this->id)->fetch_assoc();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user