NAME

Thruk::Context - Main Context Object

SYNOPSIS

  use Thruk::Context;

DESCRIPTION

Thruk::Context Main Context Object

METHODS

new

    new()

return new context object

request

return request object

response

return response object

log

return log object

detach

detach to other controller

render

detach to other controller

render_excel

detach to excel controller

render_gd

detach to gd controller

authenticate

authenticate a user

user_exists

return if a user exists

error

return/set errors

clear_errors

clear all errors

check_user_roles

$c->check_user_roles(<role>)

check_permissions

$c->check_permissions(<type>, ...)

check_cmd_permissions

$c->check_cmd_permissions(<type>, ...)

cache

$c->cache()

$c->cookie()

cookies

$c->cookies()

redirect_to

$c->redirect_to(<url>)

url_with

$c->url_with(<data>)

translate_request_path

    translate_request_path(<path_info>, $config)

translate paths, /naemon/cgi-bin to /thruk/cgi-bin/ or /<omd-site/thruk/cgi-bin/... to /thruk/cgi-bin/... so later functions can use /thruk/... for everything, regardless of the deployment path.

has_route

$c->has_route(<url>)

AUTHOR

Sven Nierlein, 2009-present, <sven@nierlein.org>

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.