make class greater

This commit is contained in:
Igor Barkov [iwork] 2019-01-14 16:40:12 +02:00
parent 77081db3a7
commit e7f8d99ac2
3 changed files with 1 additions and 13 deletions

View File

@ -3,15 +3,11 @@
class InventoryItem extends Item
{
private $present;
private $artefact;
private $item_id;
public function __construct($row)
{
parent::__construct($row);
$this->present = $row['present'];
$this->artefact = $row['artefact'];
$this->item_id = $row['id'];
if ($this->artefact) $this->name = <<<NAME
<b style='color: crimson;'>{$this->name}</b> <img src="//{$_SERVER['SERVER_NAME']}/i/artefact1.gif">

View File

@ -13,6 +13,7 @@ abstract class Item
public $razdel;
public $cost;
public $ecost;
public $artefact;
public $type; # эти. что есть что нет...

View File

@ -2,15 +2,6 @@
class ShopItem extends Item
{
private $cost;
private $count;
public function __construct($row)
{
parent::__construct($row);
$this->cost = $row['cost'];
$this->count = $row['count'];
}
public function printInfo()
{