| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Search results 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
- * @todo Implement
- */
- require_once(PATH::PAGE . "Page.php");
- /**
- * Main reports page model.
- *
- * @category Page
- */
- class Search_Page extends Page{
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- */
- public function __construct($query){
- parent::__construct();
- $this->set_public(false);
- $this->set_view("search.php");
- $this->set_title("Search results");
- $this->set_description("Search results: " . htmlentities($query));
- $this->set_canonical("search/" . $query);
- $this->add_css("search.css");
- $this->set_code(200);
- $this->set_message("OK");
- }
- }
|