| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- /**
- * Main reports 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 . "Custom_Filter.php");
- /**
- * Main reports page model.
- *
- * @category Page
- */
- class Report_Page extends Page{
- /**
- * @var \Filter[] Custom filters for thie rune upgrade form.
- */
- public $custom_filters_runeupgrade = [];
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- * @global int Player ID.
- * @global resource Database connection.
- */
- public function __construct(){
- global $UID;
- global $db;
- $this->view = PATH::VIEW . "report.php";
- // Get custom filters
- $s = "
- SELECT id
- FROM filter
- WHERE
- uid = '$UID' AND
- page = 'REPORT_RUNEUPGRADE';
- ";
- $q = $db->query($s);
- while ($r = $q->fetchArray(SQLITE3_ASSOC)){
- array_push($this->custom_filters_runeupgrade, new Custom_Filter($r["id"]));
- }
- $this->title = "Reports - SWDB";
- $this->description = "Usefull reports for summoners";
- $this->canonical = URL::BASE . "report";
- $this->title = "Reports - SWDB";
- }
- }
- ?>
|