| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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 Player_Page extends Page{
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- */
- public function __construct(){
- parent::__construct();
- $this->set_public(true);
- $this->set_view("player.php");
- $this->set_title(get_context()->get_player()->get_name());
- $this->set_description(get_context()->get_player()->get_name() . "'s profile");
- $this->set_canonical("");
- $this->add_css("player.css");
- $this->set_code(200);
- $this->set_message("OK");
- }
- }
|