Horde_Registry::popApp PHP Method

popApp() public method

Remove the current app from the application stack, setting the current app to whichever app was current before this one took over.
public popApp ( ) : string
return string The name of the application that was popped.
    public function popApp()
    {
        /* Pop the current application off of the stack. */
        $previous = array_pop($this->_appStack);
        /* Import the new active application's configuration values
         * and set the gettext domain and the preferred language. */
        $app = $this->getApp();
        if ($app) {
            /* Load config and prefs. */
            $this->importConfig('horde');
            $this->importConfig($app);
            $this->loadPrefs($app);
            $this->setTextdomain($app, $this->get('fileroot', $app) . '/locale');
        }
        return $previous;
    }