public static function selectOverviewMapByApplication($appId) { $currentMap = map::selectByApplication($appId, "overview"); if ($currentMap !== null) { $currentMap->setIsOverview(true); } return $currentMap; }