helper
class helper
Controller helper class, contains methods that do things for controllers
Properties
protected auth | $auth | ||
protected driver_interface | $cache | ||
protected config | $config | ||
protected manager | $cron_manager | ||
protected driver_interface | $db | ||
protected dispatcher | $dispatcher | ||
protected language | $language | ||
protected | $request | ||
protected helper | $routing_helper | ||
protected | $symfony_request | ||
protected template | $template | ||
protected user | $user | ||
protected string | $admin_path | ||
protected string | $php_ext | ||
protected bool | $sql_explain |
Methods
Constructor
Automate setting up the page and creating the response object.
Generate a URL to a route
Output an error, effectively the same thing as trigger_error
Output a message
Assigns automatic refresh time meta tag in template
Return the current url
Handle display actions for footer, e.g. SQL report and credit line
Display SQL report
Set cron task for footer
Details
at line 102
__construct(auth $auth, driver_interface $cache, config $config, manager $cron_manager, driver_interface $db, dispatcher $dispatcher, language $language, request_interface $request, helper $routing_helper, symfony_request $symfony_request, template $template, user $user, string $root_path, string $admin_path, string $php_ext, bool $sql_explain = false)
Constructor
at line 138
Response
render(string $template_file, string $page_title = '', int $status_code = 200, bool $display_online_list = false, int $item_id = 0, string $item = 'forum', bool $send_headers = false)
Automate setting up the page and creating the response object.
at line 210
string
route(string $route, array $params = array(), bool $is_amp = true, string|bool $session_id = false, int $reference_type = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a URL to a route
at line 224
Response
error(string $message, int $code = 500)
deprecated
deprecated
Output an error, effectively the same thing as trigger_error
at line 240
Response
message(string $message, array $parameters = array(), string $title = 'INFORMATION', int $code = 200)
Output a message
In case of an error, please throw an exception instead
at line 277
void
assign_meta_refresh_var(int $time, string $url)
Assigns automatic refresh time meta tag in template
at line 289
string
get_current_url()
Return the current url
at line 301
void
display_footer(bool $run_cron = true)
Handle display actions for footer, e.g. SQL report and credit line
at line 324
void
display_sql_report()
Display SQL report
at line 337
protected void
set_cron_task()
Set cron task for footer