make class greater
This commit is contained in:
parent
77081db3a7
commit
e7f8d99ac2
@ -3,15 +3,11 @@
|
|||||||
class InventoryItem extends Item
|
class InventoryItem extends Item
|
||||||
{
|
{
|
||||||
private $present;
|
private $present;
|
||||||
private $artefact;
|
|
||||||
private $item_id;
|
|
||||||
|
|
||||||
public function __construct($row)
|
public function __construct($row)
|
||||||
{
|
{
|
||||||
parent::__construct($row);
|
parent::__construct($row);
|
||||||
$this->present = $row['present'];
|
$this->present = $row['present'];
|
||||||
$this->artefact = $row['artefact'];
|
|
||||||
$this->item_id = $row['id'];
|
|
||||||
|
|
||||||
if ($this->artefact) $this->name = <<<NAME
|
if ($this->artefact) $this->name = <<<NAME
|
||||||
<b style='color: crimson;'>{$this->name}</b> <img src="//{$_SERVER['SERVER_NAME']}/i/artefact1.gif">
|
<b style='color: crimson;'>{$this->name}</b> <img src="//{$_SERVER['SERVER_NAME']}/i/artefact1.gif">
|
||||||
|
@ -13,6 +13,7 @@ abstract class Item
|
|||||||
public $razdel;
|
public $razdel;
|
||||||
public $cost;
|
public $cost;
|
||||||
public $ecost;
|
public $ecost;
|
||||||
|
public $artefact;
|
||||||
|
|
||||||
public $type; # эти. что есть что нет...
|
public $type; # эти. что есть что нет...
|
||||||
|
|
||||||
|
@ -2,15 +2,6 @@
|
|||||||
|
|
||||||
class ShopItem extends Item
|
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()
|
public function printInfo()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user