/** * Loads the mysqli object and organizes the URL into variables * * @param object $mysqli * @param array $url_array */ public function __construct($url_array = NULL) { // Creates a database object parent::__construct(); // Store the URL components as class properties for ($i = 0, $c = count($url_array); $i < $c; ++$i) { if (!empty($url_array[$i])) { $prop = "url{$i}"; $this->{$prop} = $url_array[$i]; } } // Identify the class being used $this->page_type = $this->get_page_data_by_slug($this->url0)->type; // Register access points $this->register_core_actions(); }