class street_class { private $conn; private $street_name = ''; private $sector; private $slug; private $exist = false; private $toid; private $toid_id = 0; private $has_postcode = false; private $postcode_array = []; private $postcode_fids = []; private $total_length = 0; private $streetline = []; private $canonical = ''; public function __construct($db, $sector, $slug) { $this->conn = $db; $this->sector = $this->format_sector($sector); $this->slug = $slug; $this->populateStreetData(); } private function format_sector($sector) { return strtoupper(str_replace('-', ' ', $sector)); } private function populateStreetData() { $this->set_street(); if (!$this->exist) { return; } $this->set_street_line(); $this->set_roadlinks(); $this->set_postcodes(); } public function get_canonical() { return $this->canonical; } public function get_toid() { return $this->toid; } public function get_length() { return $this->total_length; } public function has_postcodes() { return $this->has_postcode; } public function get_postcodes() { return $this->postcode_array; } public function get_paf_ids() { return $this->postcode_fids; } public function get_line() { return $this->streetline; } public function record_found() { return $this->exist; } public function get_street_name() { return $this->street_name; } // keep set_street(), set_street_line(), set_roadlinks(), set_postcodes() }
Fatal error: Uncaught Error: Class "street_class" not found in /home/streetlist/public_html/sr/street_handler.php:624 Stack trace: #0 /home/streetlist/public_html/sr/index.php(230): include() #1 {main} thrown in /home/streetlist/public_html/sr/street_handler.php on line 624