| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- require_once($path["page"] . "Page.php");
- require_once($path["entity"] . "Monster.php");
- /**
- * Monster view page.
- */
- class Monster_Page extends Page{
- /**
- * Selected @{see Monster}.
- */
- public $monsters;
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- * @param SQLite3 $db Connection to the database.
- * @param string $id Monster id
- */
- public function __construct($db, $id){
- global $path;
- global $root;
- parent::__construct($db);
- $this->view = $path["view"] . "monster.php";
- $this->monster = new Monster($db, $id);
- $this->title = $this->monster->monster->name ." - SWDB";
- $this->description = "Owned " . $this->monster->monster->name;
- $this->canonical = $root . "monster/" . $id;
- }
- }
- ?>
|