Много рефактора
This commit is contained in:
@@ -25,4 +25,10 @@ class ItemModel
|
||||
{
|
||||
return $this->item['img'];
|
||||
}
|
||||
|
||||
public static function getNameById(int $id): string
|
||||
{
|
||||
$name = Db::getValue('select name from items_main where id = ?', [$id]);
|
||||
return $name ?: '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user