4include_once 
'./Services/Object/classes/class.ilObjectGUI.php';
 
   39    public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = 
true)
 
   44        parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   51        $this->tabs_gui = $ilTabs;
 
   55        $this->lng->loadLanguageModule(
'logging');
 
   56        $this->lng->loadLanguageModule(
'log');
 
   58        include_once 
'./Services/Logging/classes/public/class.ilLoggerFactory.php';
 
   79        $next_class = $this->ctrl->getNextClass($this);
 
   80        $cmd = $this->ctrl->getCmd();
 
   83        switch ($next_class) {
 
   84            case 'ilpermissiongui':
 
   85                $this->tabs_gui->setTabActive(
'perm_settings');
 
   86                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   88                $ret =&$this->ctrl->forwardCommand($perm_gui);
 
   92                if ($cmd == 
"" || $cmd == 
"view") {
 
  113        if ($ilAccess->checkAccess(
"read", 
'', $this->object->getRefId())) {
 
  114            $this->tabs_gui->addTarget(
 
  115                static::SECTION_SETTINGS,
 
  116                $this->ctrl->getLinkTargetByClass(
'ilobjloggingsettingsgui', 
"settings")
 
  119        if ($ilAccess->checkAccess(
'edit_permission', 
'', $this->object->getRefId())) {
 
  120            $this->tabs_gui->addTarget(
 
  122                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm")
 
  129        $this->tabs_gui->addSubTab(
 
  130            static::SUB_SECTION_MAIN,
 
  131            $this->lng->txt(static::SUB_SECTION_MAIN),
 
  132            $this->ctrl->getLinkTarget($this, 
'settings')
 
  134        $this->tabs_gui->addSubTab(
 
  135            static::SUB_SECTION_ERROR,
 
  136            $this->lng->txt(static::SUB_SECTION_ERROR),
 
  137            $this->ctrl->getLinkTarget($this, 
'errorSettings')
 
  139        $this->tabs_gui->addSubTab(
 
  140            static::SUB_SECTION_COMPONENTS,
 
  141            $this->lng->txt(static::SUB_SECTION_COMPONENTS),
 
  142            $this->ctrl->getLinkTarget($this, 
'components')
 
  145        $this->tabs_gui->activateSubTab($a_section);
 
  150        include_once(
"Services/Logging/classes/class.ilLoggingDBSettings.php");
 
  171        if (!$ilAccess->checkAccess(
'read', 
'', $this->object->getRefId())) {
 
  172            $ilErr->raiseError($this->lng->txt(
'permission_denied'), 
$ilErr->MESSAGE);
 
  175        $this->tabs_gui->setTabActive(static::SECTION_SETTINGS);
 
  181        $this->tpl->setContent(
$form->getHTML());
 
  194        include_once 
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
 
  198        if (!
$rbacsystem->checkAccess(
'write', $this->object->getRefId())) {
 
  199            $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->ilias->error_obj->MESSAGE);
 
  204        if (
$form->checkInput()) {
 
  212            $this->
getLogger()->info(print_r(
$form->getInput(
'browser_users'), 
true));
 
  217            $this->ctrl->redirect($this, 
'settings');
 
  222        $form->setValuesByPost();
 
  236        include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  237        include_once 
'./Services/Search/classes/class.ilSearchSettings.php';
 
  240        $form->setTitle($this->lng->txt(
'logs_settings'));
 
  241        $form->setFormAction($this->ctrl->getFormAction($this));
 
  243        if ($ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
  244            $form->addCommandButton(
'updateSettings', $this->lng->txt(
'save'));
 
  249        $level->setValue($this->
getSettings()->getLevel());
 
  250        $form->addItem($level);
 
  253        $cache->setInfo($this->lng->txt(
'log_cache_info'));
 
  255        $cache->setChecked($this->
getSettings()->isCacheEnabled());
 
  256        $form->addItem($cache);
 
  258        $cache_level = 
new ilSelectInputGUI($this->lng->txt(
'log_cache_level'), 
'cache_level');
 
  260        $cache_level->setValue($this->
getSettings()->getCacheLevel());
 
  261        $cache->addSubItem($cache_level);
 
  264        $memory->setValue(1);
 
  265        $memory->setChecked($this->
getSettings()->isMemoryUsageEnabled());
 
  266        $form->addItem($memory);
 
  270        $browser->setValue(1);
 
  271        $browser->setChecked($this->
getSettings()->isBrowserLogEnabled());
 
  272        $form->addItem($browser);
 
  282        $browser->addSubItem(
$users);
 
  294        $this->tabs_gui->activateTab(static::SECTION_SETTINGS);
 
  295        $this->
setSubTabs(static::SUB_SECTION_COMPONENTS);
 
  297        include_once 
'./Services/Logging/classes/class.ilLogComponentTableGUI.php';
 
  313        foreach (
$_POST[
'level'] as $component_id => $value) {
 
  316            include_once 
'./Services/Logging/classes/class.ilLogComponentLevel.php';
 
  322        $this->ctrl->redirect($this, 
'components');
 
  330            $component->setLevel(
null);
 
  331            $component->update();
 
  334        $this->ctrl->redirect($this, 
'components');
 
  341        if (!$ilAccess->checkAccess(
'read', 
'', $this->object->getRefId())) {
 
  342            $ilErr->raiseError($this->lng->txt(
'permission_denied'), 
$ilErr->MESSAGE);
 
  345        $this->tabs_gui->setTabActive(static::SECTION_SETTINGS);
 
  351        $this->tpl->setContent(
$form->getHTML());
 
  360        if (!
$rbacsystem->checkAccess(
'write', $this->object->getRefId())) {
 
  361            $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->ilias->error_obj->MESSAGE);
 
  365        if (
$form->checkInput()) {
 
  370            $this->ctrl->redirect($this, 
'errorSettings');
 
  374        $form->setValuesByPost();
 
  382        require_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  383        require_once 
'./Services/Search/classes/class.ilSearchSettings.php';
 
  386        $form->setTitle($this->lng->txt(
'logs_settings'));
 
  387        $form->setFormAction($this->ctrl->getFormAction($this));
 
  389        if ($ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
  390            $form->addCommandButton(
'updateErrorSettings', $this->lng->txt(
'save'));
 
  395        $form->addItem($folder);
 
  397        $mail = 
new ilTextInputGUI($this->lng->txt(
'log_error_mail'), 
'error_mail');
 
  399        $form->addItem($mail);
 
  406        require_once(
"Services/Logging/classes/error/class.ilLoggingErrorSettings.php");
 
  412        return $this->error_settings;
 
An exception for terminatinating execution or to throw for unit testing.
individual log levels for components
Component logger with individual log levels by component id.
static getLevelOptions()
Get log level options.
static getLogger($a_component_id)
Get component logger.
static getInstance()
Get instance.
This class represents a non editable value in a property form.
const SUB_SECTION_COMPONENTS
settings(ilPropertyFormGUI $form=null)
Show settings @access public.
components()
Show components.
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor.
executeCommand()
Execute command.
updateSettings()
Save settings @access public.
saveComponentLevels()
Save form.
initFormSettings()
Init settings form.
getSettings()
Get log settings.
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
mail($to, $subject, $message, $additional_headers=null, $additional_parameters=null)
redirection script todo: (a better solution should control the processing via a xml file)
if(empty($password)) $table