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