| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * Monster view page file.
- *
- * Provides a class with all the properties and methods to display the page.
- *
- * @category Page
- */
- /**
- * Require dependent files if not present.
- */
- require_once(PATH::PAGE . "Page.php");
- require_once(PATH::ENTITY . "Unit.php");
- /**
- * Monster view page model.
- *
- * @category Page
- */
- class Monster_Page extends Page{
- /**
- * @var Unit Selected Unit.
- */
- public $unit;
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- * @param string $id Selected unit id
- */
- public function __construct($id){
- $this->view = PATH::VIEW . "monster.php";
- $this->unit = new Unit($id);
- $this->title = $this->unit->unit->name ." - SWDB";
- $this->description = "Owned " . $this->unit->unit->name;
- $this->canonical = URL::BASE . "monster/" . $id;
- }
- }
- ?>
|