code/libraries/joomlatools/library/dispatcher/response/abstract.php
public function terminate()
    {
        //Cleanup and flush output to client
        if (!function_exists('fastcgi_finish_request'))
        {
            if (PHP_SAPI !== 'cli')
            {
                for ($i = 0; $i < ob_get_level(); $i++) {
                    ob_end_flush();
                }

                flush();
            }
        }
        else fastcgi_finish_request();

        //Set the exit status based on the status code.
        $status = 0;
        if(!$this->isSuccess()) {
            $status = (int) $this->getStatusCode();
        }

        exit($status);
    }
public function terminate()
    {
        //Cleanup and flush output to client
        if (!function_exists('fastcgi_finish_request'))
        {
            if (PHP_SAPI !== 'cli')
            {
                for ($i = 0; $i < ob_get_level(); $i++) {
                    ob_end_flush();
                }

                flush();
            }
        }
        else fastcgi_finish_request();

        //Set the exit status based on the status code.
        $status = 0;
        if(!$this->isSuccess()) {
            $status = (int) $this->getStatusCode();
        }

        exit($status);
    }
public function terminate ( ) { //Cleanup and flush output to client if ( ! function_exists ( 'fastcgi_finish_request' ) ) { if ( PHP_SAPI !== 'cli' ) { for ( $ i = 0 ; $ i < ob_get_level ( ) ; $ i ++ ) { ob_end_flush ( ) ; } flush ( ) ; } } else fastcgi_finish_request ( ) ; //Set the exit status based on the status code. $ status = 0 ; if ( ! $ this -> isSuccess ( ) ) { $ status = ( int ) $ this -> getStatusCode ( ) ; } exit ( $ status ) ; }
Flush the output buffer and terminate request

@return void
Flush the output buffer and terminate request