From 4489bdf0c4f727601163f1d1192c26a02131b160 Mon Sep 17 00:00:00 2001 From: leosw Date: Mon, 8 Apr 2019 21:06:36 +0200 Subject: [PATCH] Initial commit for poi model --- models/d.poi.php | 103 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 models/d.poi.php diff --git a/models/d.poi.php b/models/d.poi.php new file mode 100644 index 0000000..848c954 --- /dev/null +++ b/models/d.poi.php @@ -0,0 +1,103 @@ +populate($row); + return 1; + } + else { + return 0; + } + } + + /***** + ** Populate the object using its ID + *****/ + public function populate($row) { + + $this->$poi_id = $row['poi_id']; + $this->$locale_id = $row['locale_id']; + $this->$source_id = $row['source_id']; + $this->$version_id = $row['version_id']; + $this->$is_public = $row['is_public']; + $this->$permalink = $row['permalink']; + $this->$creation_date = $row['creation_date']; + $this->$name = $row['name']; + $this->$position = $row['position']; + $this->$type = $row['type']; + $this->$locale = $row['locale']; + $this->$source = $row['source']; + $this->$remote_source_id = $row['remote_source_id']; + $this->$author = $row['author']; + $this->$version = $row['version']; + $this->$update_date = $row['update_date']; + $this->$is_archive = $row['is_archive']; + $this->$alt_type = $row['alt_type']; + $this->$is_destroyed = $row['is_destroyed']; + $this->$alt_name = $row['alt_name']; + $this->$alt_position = $row['alt_position']; + $this->$parameters = $row['parameters']; + } + +} + +?> \ No newline at end of file