src/Webtrees/Module/GeoDispersion/Model/GeoAnalysisProvider.php
public function getGeoAnalysisList(){
        $res = array();
        
        $list = Database::prepare(
            'SELECT majgd_id, majgd_descr, majgd_sublevel, majgd_map, majgd_toplevel, majgd_useflagsgen, majgd_detailsgen' .
            ' FROM `##maj_geodispersion`' .
            ' WHERE majgd_file = :gedcom_id AND majgd_status = :status'.
            ' ORDER BY majgd_descr'
        )->execute(array(
            'gedcom_id' => $this->tree->getTreeId(),
            'status' => 'enabled'
        ))->fetchAll(\PDO::FETCH_ASSOC);
        
        foreach($list as $ga) {
           $res[] = $this->loadGeoAnalysisFromRow($ga);
        }
        
        return $res;
    }
public function getGeoAnalysisList(){
        $res = array();
        
        $list = Database::prepare(
            'SELECT majgd_id, majgd_descr, majgd_sublevel, majgd_map, majgd_toplevel, majgd_useflagsgen, majgd_detailsgen' .
            ' FROM `##maj_geodispersion`' .
            ' WHERE majgd_file = :gedcom_id AND majgd_status = :status'.
            ' ORDER BY majgd_descr'
        )->execute(array(
            'gedcom_id' => $this->tree->getTreeId(),
            'status' => 'enabled'
        ))->fetchAll(\PDO::FETCH_ASSOC);
        
        foreach($list as $ga) {
           $res[] = $this->loadGeoAnalysisFromRow($ga);
        }
        
        return $res;
    }
public function getGeoAnalysisList ( ) { $ res = array ( ) ; $ list = Database :: prepare ( 'SELECT majgd_id, majgd_descr, majgd_sublevel, majgd_map, majgd_toplevel, majgd_useflagsgen, majgd_detailsgen' . ' FROM `##maj_geodispersion`' . ' WHERE majgd_file = :gedcom_id AND majgd_status = :status' . ' ORDER BY majgd_descr' ) -> execute ( array ( 'gedcom_id' => $ this -> tree -> getTreeId ( ) , 'status' => 'enabled' ) ) -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; foreach ( $ list as $ ga ) { $ res [ ] = $ this -> loadGeoAnalysisFromRow ( $ ga ) ; } return $ res ; }
Return the list of geodispersion analysis recorded and enabled for a specific GEDCOM

@return array List of enabled maps
Return the list of geodispersion analysis recorded and enabled for a specific GEDCOM