boka3/include/InventoryPage.php
Erik Thuning 692c2e0aeb Broke all classes into separate files and activated class autoloading.
All free functions are now in functions.php
2019-06-11 17:05:48 +02:00

19 lines
444 B
PHP

<?php
class InventoryPage extends Page {
private $inventory = null;
public function __construct() {
parent::__construct();
$this->inventory = Inventory::get_active();
}
protected function render_body() {
if($this->inventory === null) {
print($this->fragments['inventory_start']);
return;
}
print($this->build_inventory_details($this->inventory));
}
}
?>