[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 267 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
helper:: (6 methods):
__construct()
render()
route()
error()
message()
get_current_url()
__construct(\phpbb\template\template $template, \phpbb\user $user, \phpbb\config\config $config, \phpbb\controller\provider $provider, \phpbb\extension\manager $manager, \phpbb\symfony_request $symfony_request, \phpbb\request\request_interface $request, \phpbb\filesystem $filesystem, $phpbb_root_path, $php_ext) X-Ref |
Constructor param: \phpbb\template\template $template Template object param: \phpbb\user $user User object param: \phpbb\config\config $config Config object param: \phpbb\controller\provider $provider Path provider param: \phpbb\extension\manager $manager Extension manager object param: \phpbb\symfony_request $symfony_request Symfony Request object param: \phpbb\request\request_interface $request phpBB request object param: \phpbb\filesystem $filesystem The filesystem object param: string $phpbb_root_path phpBB root path param: string $php_ext PHP file extension |
render($template_file, $page_title = '', $status_code = 200, $display_online_list = false, $item_id = 0, $item = 'forum', $send_headers = false) X-Ref |
Automate setting up the page and creating the response object. param: string $template_file The template handle to render param: string $page_title The title of the page to output param: int $status_code The status code to be sent to the page header param: bool $display_online_list Do we display online users list param: int $item_id Restrict online users to item id param: string $item Restrict online users to a certain session item, e.g. forum for session_forum_id param: bool $send_headers Whether headers should be sent by page_header(). Defaults to false for controllers. return: Response object containing rendered page |
route($route, array $params = array() X-Ref |
Generate a URL to a route param: string $route Name of the route to travel param: array $params String or array of additional url parameters param: bool $is_amp Is url using & (true) or & (false) param: string|bool $session_id Possibility to use a custom session id instead of the global one param: bool|string $reference_type The type of reference to be generated (one of the constants) return: string The URL already passed through append_sid() |
error($message, $code = 500) X-Ref |
Output an error, effectively the same thing as trigger_error param: string $message The error message param: int $code The error code (e.g. 404, 500, 503, etc.) return: Response A Response instance |
message($message, array $parameters = array() X-Ref |
Output a message In case of an error, please throw an exception instead param: string $message The message to display (must be a language variable) param: array $parameters The parameters to use with the language var param: string $title Title for the message (must be a language variable) param: int $code The HTTP status code (e.g. 404, 500, 503, etc.) return: Response A Response instance |
get_current_url() X-Ref |
Return the current url return: string |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |