Classes/Command/MetaseoCommandController.php
public function sitemapCommand($rootPageId)
    {
        $rootPageId = $this->getRootPageIdFromId($rootPageId);

        if ($rootPageId !== null) {
            $domain = RootPageUtility::getDomain($rootPageId);

            $query   = 'SELECT page_url
                          FROM tx_metaseo_sitemap
                         WHERE page_rootpid = ' . DatabaseUtility::quote($rootPageId, 'tx_metaseo_sitemap') . '
                           AND is_blacklisted = 0';
            $urlList = DatabaseUtility::getCol($query);

            foreach ($urlList as $url) {
                if ($domain) {
                    $url = GeneralUtility::fullUrl($url, $domain);
                }

                ConsoleUtility::writeLine($url);
            }
        } else {
            ConsoleUtility::writeErrorLine('No such root page found');
            ConsoleUtility::terminate(1);
        }
    }
public function sitemapCommand($rootPageId)
    {
        $rootPageId = $this->getRootPageIdFromId($rootPageId);

        if ($rootPageId !== null) {
            $domain = RootPageUtility::getDomain($rootPageId);

            $query   = 'SELECT page_url
                          FROM tx_metaseo_sitemap
                         WHERE page_rootpid = ' . DatabaseUtility::quote($rootPageId, 'tx_metaseo_sitemap') . '
                           AND is_blacklisted = 0';
            $urlList = DatabaseUtility::getCol($query);

            foreach ($urlList as $url) {
                if ($domain) {
                    $url = GeneralUtility::fullUrl($url, $domain);
                }

                ConsoleUtility::writeLine($url);
            }
        } else {
            ConsoleUtility::writeErrorLine('No such root page found');
            ConsoleUtility::terminate(1);
        }
    }
public function sitemapCommand ( $ rootPageId ) { $ rootPageId = $ this -> getRootPageIdFromId ( $ rootPageId ) ; if ( $ rootPageId !== null ) { $ domain = RootPageUtility :: getDomain ( $ rootPageId ) ; $ query = 'SELECT page_url
                          FROM tx_metaseo_sitemap
                         WHERE page_rootpid = ' . DatabaseUtility :: quote ( $ rootPageId , 'tx_metaseo_sitemap' ) . '
                           AND is_blacklisted = 0' ; $ urlList = DatabaseUtility :: getCol ( $ query ) ; foreach ( $ urlList as $ url ) { if ( $ domain ) { $ url = GeneralUtility :: fullUrl ( $ url , $ domain ) ; } ConsoleUtility :: writeLine ( $ url ) ; } } else { ConsoleUtility :: writeErrorLine ( 'No such root page found' ) ; ConsoleUtility :: terminate ( 1 ) ; } }
Get whole list of sitemap entries

@param   string $rootPageId Site root page id or domain
Get whole list of sitemap entries