add template files and compose file, fix syntax errors in template

This commit is contained in:
boris
2024-11-21 12:33:19 +00:00
parent f9d57038bf
commit b64c6d835e
55 changed files with 16384 additions and 7288 deletions

52
Models/FacilityData.php Normal file
View File

@@ -0,0 +1,52 @@
<?php
class FacilityData {
protected $_id, $_title, $_category, $_description, $_houseNumber, $_streetName, $_county, $_town, $_postcode, $_lng, $_lat;
public function __construct($dbRow) {
$this->_id = $dbRow['_id'];
$this->_title = $dbRow['title'];
$this->_category = $dbRow['category'];
$this->_description = $dbRow['description'];
$this->_houseNumber = $dbRow['houseNumber'];
$this->_streetName = $dbRow['streetName'];
$this->_county = $dbRow['county'];
$this->_town = $dbRow['town'];
$this->_postcode = $dbRow['postcode'];
$this->_lng = $dbRow['lng'];
$this->_lat = $dbRow['lat'];
}
public function getId() {
return $this->_id;
}
public function getTitle() {
return $this->_title;
}
public function getCategory() {
return $this->_category;
}
public function getDescription() {
return $this->_description;
}
public function getHouseNumber() {
return $this->_houseNumber;
}
public function getStreetName() {
return $this->_streetName;
}
public function getCounty() {
return $this->_county;
}
public function getTown() {
return $this->_town;
}
public function getPostcode() {
return $this->_postcode;
}
public function getLng() {
return $this->_lng;
}
public function getLat() {
return $this->_lat;
}
}