Из shop уехали все запросы в класс. Теперь он только отображает.
This commit is contained in:
@@ -27,7 +27,7 @@ class InventoryItem extends Item
|
||||
|
||||
public function printInfo()
|
||||
{
|
||||
parent::printAllInfo();
|
||||
echo $this->getAllInfo();
|
||||
if ($this->present) {
|
||||
echo "<p style='color: maroon; font-style: italic'>Это подарок от $this->present. Вы не можете передать его кому-либо ещё.</p>";
|
||||
}
|
||||
@@ -48,9 +48,8 @@ IMG;
|
||||
}
|
||||
}
|
||||
|
||||
public function printControls()
|
||||
{
|
||||
/* Тут будут кнопки под картинкой. */
|
||||
public function printControls(){
|
||||
// Для кнопок управления под картинкой.
|
||||
}
|
||||
|
||||
private function dressStatsChecks(): ?string
|
||||
@@ -130,14 +129,9 @@ IMG;
|
||||
return $error ?? true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $itemId
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function destroyItem($itemId): bool
|
||||
public static function destroyItem($itemId)
|
||||
{
|
||||
return DBPDO::INIT()->execute('delete from inventory where dressed_slot = 0 and owner_id = ? and item_id = ?', [$_SESSION['uid'], $itemId]);
|
||||
DBPDO::INIT()->execute('delete from inventory where dressed_slot = 0 and owner_id = ? and item_id = ?', [$_SESSION['uid'], $itemId]);
|
||||
}
|
||||
|
||||
/** Надеюсь, временная заглушка, которая объединяет get_meshok() и другую выдачу одной строкой.
|
||||
|
||||
Reference in New Issue
Block a user