* @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"); } }