public function getPageTitle()
    {
        $page = $GLOBALS['TSFE'];

        if ($page->indexedDocTitle) {
            $pageTitle = $page->indexedDocTitle;
        } elseif ($page->altPageTitle) {
            $pageTitle = $page->altPageTitle;
        } else {
            $pageTitle = $page->page['title'];
        }

        return $pageTitle;
    }
public function getPageTitle()
    {
        $page = $GLOBALS['TSFE'];

        if ($page->indexedDocTitle) {
            $pageTitle = $page->indexedDocTitle;
        } elseif ($page->altPageTitle) {
            $pageTitle = $page->altPageTitle;
        } else {
            $pageTitle = $page->page['title'];
        }

        return $pageTitle;
    }
public function getPageTitle ( ) { $ page = $ GLOBALS [ 'TSFE' ] ; if ( $ page -> indexedDocTitle ) { $ pageTitle = $ page -> indexedDocTitle ; } elseif ( $ page -> altPageTitle ) { $ pageTitle = $ page -> altPageTitle ; } else { $ pageTitle = $ page -> page [ 'title' ] ; } return $ pageTitle ; }
Retrieves the page's title by checking the indexedDocTitle, altPageTitle,
and regular page title - in that order.

@return string the page's title
Retrieves the page s title by checking the indexedDocTitle altPageTitle and regular page title - in that order .