Resources/contao/dca/tl_c4g_map_profiles.php
public function getAllBaseLayers(DataContainer $dc)
    {
        $baseLayers = $this->Database->prepare("SELECT id,name FROM tl_c4g_map_baselayers ORDER BY name")
            ->execute();
        while ($baseLayers->next()) {
            $return[$baseLayers->id] = $baseLayers->name;
        }
        return $return;
    }
public function getAllBaseLayers(DataContainer $dc)
    {
        $baseLayers = $this->Database->prepare("SELECT id,name FROM tl_c4g_map_baselayers ORDER BY name")
            ->execute();
        while ($baseLayers->next()) {
            $return[$baseLayers->id] = $baseLayers->name;
        }
        return $return;
    }
public function getAllBaseLayers ( DataContainer $ dc ) { $ baseLayers = $ this -> Database -> prepare ( "SELECT id,name FROM tl_c4g_map_baselayers ORDER BY name" ) -> execute ( ) ; while ( $ baseLayers -> next ( ) ) { $ return [ $ baseLayers -> id ] = $ baseLayers -> name ; } return $ return ; }
Return all Base Layers as array
@param object
@return array
Return all Base Layers as array