This commit is contained in:
Igor Barkov [iwork] 2019-01-11 18:22:32 +02:00
parent fbc588981b
commit d68f9b232a
3 changed files with 16 additions and 9 deletions

View File

@ -122,12 +122,4 @@ class Item
$this->mfuvorot = $row['mfuvorot'];
$this->mfauvorot = $row['mfauvorot'];
}
}
class ItemStats extends Item
{
public function printItemStats()
{
echo $this->name ." (Масса: ". $this->massa .")<br>";
}
}

15
classes/ItemClass.php Normal file
View File

@ -0,0 +1,15 @@
<?php
/**
* Created by PhpStorm.
* User: Lopar
* Date: 11.01.2019
* Time: 18:21
*/
class ItemClass extends Item
{
public function printItemStats()
{
echo $this->name ." (Масса: ". $this->massa .")<br>";
}
}

View File

@ -17,7 +17,7 @@ require_once 'config.php';
$result = db::c()->query('SELECT * FROM `shop` WHERE count > 0');
while ($row = $result->fetch_assoc()) {
$iteminfo[] = new ItemStats($row);
$iteminfo[] = new Item($row);
}
foreach ($iteminfo as $iinfo) {