| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * Home 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 . "Player.php");
- /**
- * Home page model.
- *
- * @category Page
- */
- class Home_Page extends Page{
- /**
- * @var Player Player instance.
- */
- public $player;
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- * @global int Player ID.
- */
- public function __construct(){
- global $UID;
- $this->view = PATH::VIEW . "home.php";
- $this->player = new Player($UID);
- $this->title = $this->player->name . " - SWDB";
- $this->description = $this->player->name . " - Summoners War DataBase";
- $this->canonical = URL::BASE;
- }
- }
- ?>
|