| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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.
- */
- public function __construct(){
- $this->player = get_context()->get_player();
- $this->view = PATH::VIEW . "home.php";
- $this->title = get_context()->get_player()->get_name() . " - SWDB";
- $this->description = get_context()->get_player()->get_name() . " - Summoners War DataBase";
- $this->canonical = URL::BASE;
- }
- }
- ?>
|