Pushing map parameters to DB

This commit is contained in:
2021-12-20 21:27:33 +01:00
parent e384162c80
commit 0e06b0e591
14 changed files with 135 additions and 83 deletions

View File

@@ -174,16 +174,6 @@ class Project extends PhpObject {
return $iLastMsg;
}
public function getMaps() {
$sQuery =
"SELECT codename, geo_name, tile_size, min_zoom, max_zoom, attribution ".
"FROM ".Spot::MAPPING_TABLE." ".
"LEFT JOIN ".Spot::MAP_TABLE." USING(".Db::getId(Spot::MAP_TABLE).") ".
"WHERE ".Db::getId(self::PROJ_TABLE)." = ".$this->getProjectId()." ".
"OR ".Db::getId(self::PROJ_TABLE)." IS NULL ";
return $this->oDb->getArrayQuery($sQuery, true);
}
private function setProjectInfo() {
if($this->getProjectId() > 0) {
$asProject = $this->getProject();