Resources/contao/dca/tl_c4g_map_profiles.php
public function getAllThemes()
    {
        $return = [];
        $themes = $this->Database->prepare("SELECT id,name FROM tl_c4g_map_themes ORDER BY name")
            ->execute();
        while ($themes->next()) {
            $return[$themes->id] = $themes->name;
        }
        return $return;
    }
public function getAllThemes()
    {
        $return = [];
        $themes = $this->Database->prepare("SELECT id,name FROM tl_c4g_map_themes ORDER BY name")
            ->execute();
        while ($themes->next()) {
            $return[$themes->id] = $themes->name;
        }
        return $return;
    }
public function getAllThemes ( ) { $ return = [ ] ; $ themes = $ this -> Database -> prepare ( "SELECT id,name FROM tl_c4g_map_themes ORDER BY name" ) -> execute ( ) ; while ( $ themes -> next ( ) ) { $ return [ $ themes -> id ] = $ themes -> name ; } return $ return ; }
Return all themes as array
@return array
Return all themes as array