| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Home page file.
- *
- * Provides a class with all the properties and methods to display the page.
- *
- * @author Iñigo Valentin <i@inigovalentin.com>
- * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
- * @package SWDB
- */
- require_once(PATH::PAGE . "Page.php");
- require_once(PATH::ENTITY . "Player.php");
- /**
- * Home page model.
- *
- * @category Page
- */
- class Home_Page extends Page{
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- */
- public function __construct(){
- $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;
- }
- }
|