parent:: test

This commit is contained in:
lopar
2019-01-11 22:26:10 +02:00
parent ec59f2726e
commit 5151a5bc61
3 changed files with 27 additions and 26 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
class ShopItem extends Item
{
public function printInfo()
{
parent::printBaseInfo();
echo "<br>Цена" . $this->wrap($this->cost) . " пымпочек";
parent::printRequirements();
parent::printBonuses();
}
/**
* Для кнопок управления под картинкой прелмета в зависимости от ситуации.
*/
public function printControls()
{
echo <<<BTN
<br><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="Купить"
onclick="location='/admin.php'">
<br><input type="button" style="background: orangered; border: 1px solid crimson; color: white; border-radius: 2px;" value="Уничтожить предмет"
onclick="location='/forum.php'">
BTN;
}
}