| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- require_once($path["page"] . "Page.php");
- require_once($path["entity"] . "K_Fusion.php");
- /**
- * Fusion page model.
- */
- class Fusion_Page extends Page{
- /**
- * List of top-level fusions.
- */
- public $fusion = [];
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- * @param SQLite3 $db Connection to the database.
- */
- public function __construct($db){
- global $path;
- global $root;
- parent::__construct($db);
- $this->view = $path["view"] . "fusion.php";
- $s =
- "SELECT DISTINCT product " .
- "FROM k_fusion " .
- "WHERE stars = 5 " .
- "ORDER BY stars DESC; ";
- $q = $this->db->query($s);
- while ($r = $q->fetchArray(SQLITE3_ASSOC)){
- array_push($this->fusion, new Fusion($this->db, $r["product"]));
- }
- $this->title = "Fusion - SWDB";
- $this->description = "Fusion chart";
- $this->canonical = $root . "fusion/";
- }
- }
- ?>
|