InterfaceAgent#
NAME#
Kernel::System::Web::InterfaceAgent - the agent web interface
DESCRIPTION#
the global agent web interface (authentication, session handling, …)
PUBLIC INTERFACE#
new()#
create agent web interface object. Do not use it directly, instead use:
use Kernel::System::ObjectManager;
my $Debug = 0,
local $Kernel::OM = Kernel::System::ObjectManager->new(
'Kernel::System::Web::InterfaceAgent' => {
Debug => 0,
WebRequest => CGI::Fast->new(), # optional, e. g. if fast cgi is used,
# the CGI object is already provided
}
);
my $InterfaceAgent = $Kernel::OM->Get('Kernel::System::Web::InterfaceAgent');
Run()#
execute the object
$InterfaceAgent->Run();
_UserTimeZoneGet()#
Get time zone for the current user. This function will validate passed time zone parameter and return default user time zone if it’s not valid.
my $UserTimeZone = $Self->_UserTimeZoneGet(
UserTimeZone => 'Europe/Berlin',
);