public function getFields() { if (!$this->fields) { $results = MapDB::propertiesForFeature($this); foreach ($results as $row) { $this->fields[$row['property_name']] = $row['property_value']; } } return $this->fields; }