src/ErrorPage.php
protected static function get_error_filename($statusCode, $instance = null)
    {
        if (!$instance) {
            $instance = ErrorPage::singleton();
        }
        // Allow modules to extend this filename (e.g. for multi-domain, translatable)
        $name = "error-{$statusCode}.html";
        $instance->extend('updateErrorFilename', $name, $statusCode);
        return $name;
    }
protected static function get_error_filename($statusCode, $instance = null)
    {
        if (!$instance) {
            $instance = ErrorPage::singleton();
        }
        // Allow modules to extend this filename (e.g. for multi-domain, translatable)
        $name = "error-{$statusCode}.html";
        $instance->extend('updateErrorFilename', $name, $statusCode);
        return $name;
    }
protected static function get_error_filename ( $ statusCode , $ instance = null ) { if ( ! $ instance ) { $ instance = ErrorPage :: singleton ( ) ; } // Allow modules to extend this filename (e.g. for multi-domain, translatable) $ name = "error-{$statusCode}.html" ; $ instance -> extend ( 'updateErrorFilename' , $ name , $ statusCode ) ; return $ name ; }
Gets the filename identifier for the given error code.
Used when handling responses under error conditions.

@param int $statusCode A HTTP Statuscode, typically 404 or 500
@param ErrorPage $instance Optional instance to use for name generation
@return string
Gets the filename identifier for the given error code . Used when handling responses under error conditions .