system/modules/short_urls/dca/tl_short_urls.php
public function getDomains()
    {
        // options array
        $options = array( '' => $GLOBALS['TL_LANG']['tl_short_urls']['noDomain'] );

        // get the root pages and their dns settings
        if( version_compare( VERSION, '3.5', '>=' ) )
        {
            if( ( $objPages = \PageModel::findPublishedRootPages() ) !== null )
                while( $objPages->next() )
                    if( $objPages->dns )
                        $options[$objPages->id] = $objPages->dns;           
        }
        else
        {
            $t = \PageModel::getTable();
            $arrColumns = array("$t.type=?");

            if (!BE_USER_LOGGED_IN)
            {
                $time = time();
                $arrColumns[] = "($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'" . ($time + 60) . "') AND $t.published='1'";
            }

            $objPages = \PageModel::findBy($arrColumns, 'root');

            if( $objPages !== null )
                while( $objPages->next() )
                    if( $objPages->dns )
                        $options[$objPages->id] = $objPages->dns;
        }

        // return the options
        return $options;
    }
public function getDomains()
    {
        // options array
        $options = array( '' => $GLOBALS['TL_LANG']['tl_short_urls']['noDomain'] );

        // get the root pages and their dns settings
        if( version_compare( VERSION, '3.5', '>=' ) )
        {
            if( ( $objPages = \PageModel::findPublishedRootPages() ) !== null )
                while( $objPages->next() )
                    if( $objPages->dns )
                        $options[$objPages->id] = $objPages->dns;           
        }
        else
        {
            $t = \PageModel::getTable();
            $arrColumns = array("$t.type=?");

            if (!BE_USER_LOGGED_IN)
            {
                $time = time();
                $arrColumns[] = "($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'" . ($time + 60) . "') AND $t.published='1'";
            }

            $objPages = \PageModel::findBy($arrColumns, 'root');

            if( $objPages !== null )
                while( $objPages->next() )
                    if( $objPages->dns )
                        $options[$objPages->id] = $objPages->dns;
        }

        // return the options
        return $options;
    }
Retreives all available domains in this installation (plus empty selection)

@return array