4include_once 
'./Services/Object/classes/class.ilObjectGUI.php';
 
   43    public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = 
true)
 
   51        $this->lng = $this->dic->language();
 
   53        $this->tpl = $this->dic[
'tpl'];
 
   54        $this->lng = $this->dic->language();
 
   55        $this->ctrl = $this->dic->ctrl();
 
   56        $this->tabs_gui = $this->dic->tabs();
 
   60        $this->lng->loadLanguageModule(
'logging');
 
   61        $this->lng->loadLanguageModule(
'log');
 
   63        include_once 
'./Services/Logging/classes/public/class.ilLoggerFactory.php';
 
   84        $next_class = $this->ctrl->getNextClass($this);
 
   85        $cmd = $this->ctrl->getCmd();
 
   88        switch ($next_class) {
 
   89            case 'ilpermissiongui':
 
   90                $this->tabs_gui->setTabActive(
'perm_settings');
 
   91                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   93                $ret = &$this->ctrl->forwardCommand($perm_gui);
 
   97                if ($cmd == 
"" || $cmd == 
"view") {
 
  118        $ilAccess = 
$DIC[
'ilAccess'];
 
  120        if ($ilAccess->checkAccess(
"read", 
'', $this->object->getRefId())) {
 
  121            $this->tabs_gui->addTarget(
 
  122                static::SECTION_SETTINGS,
 
  123                $this->ctrl->getLinkTargetByClass(
'ilobjloggingsettingsgui', 
"settings")
 
  126        if ($ilAccess->checkAccess(
'edit_permission', 
'', $this->object->getRefId())) {
 
  127            $this->tabs_gui->addTarget(
 
  129                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm")
 
  136        $this->tabs_gui->addSubTab(
 
  137            static::SUB_SECTION_MAIN,
 
  138            $this->lng->txt(static::SUB_SECTION_MAIN),
 
  139            $this->ctrl->getLinkTarget($this, 
'settings')
 
  141        $this->tabs_gui->addSubTab(
 
  142            static::SUB_SECTION_ERROR,
 
  143            $this->lng->txt(static::SUB_SECTION_ERROR),
 
  144            $this->ctrl->getLinkTarget($this, 
'errorSettings')
 
  146        $this->tabs_gui->addSubTab(
 
  147            static::SUB_SECTION_COMPONENTS,
 
  148            $this->lng->txt(static::SUB_SECTION_COMPONENTS),
 
  149            $this->ctrl->getLinkTarget($this, 
'components')
 
  152        $this->tabs_gui->activateSubTab($a_section);
 
  157        include_once(
"Services/Logging/classes/class.ilLoggingDBSettings.php");
 
  178        if (!$this->rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  179            $DIC[
'ilErr']->raiseError($this->lng->txt(
'permission_denied'), 
$DIC[
'ilErr']->MESSAGE);
 
  182        $this->tabs_gui->setTabActive(static::SECTION_SETTINGS);
 
  188        $this->tpl->setContent(
$form->getHTML());
 
  201        include_once 
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
 
  207        if (!
$rbacsystem->checkAccess(
'write', $this->object->getRefId())) {
 
  208            $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->ilias->error_obj->MESSAGE);
 
  213        if (
$form->checkInput()) {
 
  221            $this->
getLogger()->info(print_r(
$form->getInput(
'browser_users'), 
true));
 
  225            ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
  226            $this->ctrl->redirect($this, 
'settings');
 
  231        $form->setValuesByPost();
 
  247        $ilAccess = 
$DIC[
'ilAccess'];
 
  249        include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  250        include_once 
'./Services/Search/classes/class.ilSearchSettings.php';
 
  253        $form->setTitle($this->lng->txt(
'logs_settings'));
 
  254        $form->setFormAction($this->ctrl->getFormAction($this));
 
  256        if ($ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
  257            $form->addCommandButton(
'updateSettings', $this->lng->txt(
'save'));
 
  263        $form->addItem($level);
 
  266        $cache->setInfo($this->lng->txt(
'log_cache_info'));
 
  268        $cache->setChecked($this->
getSettings()->isCacheEnabled());
 
  269        $form->addItem($cache);
 
  271        $cache_level = 
new ilSelectInputGUI($this->lng->txt(
'log_cache_level'), 
'cache_level');
 
  273        $cache_level->setValue($this->
getSettings()->getCacheLevel());
 
  274        $cache->addSubItem($cache_level);
 
  277        $memory->setValue(1);
 
  278        $memory->setChecked($this->
getSettings()->isMemoryUsageEnabled());
 
  279        $form->addItem($memory);
 
  283        $browser->setValue(1);
 
  284        $browser->setChecked($this->
getSettings()->isBrowserLogEnabled());
 
  285        $form->addItem($browser);
 
  288        $users = 
new ilTextInputGUI($this->lng->txt(
'log_browser_users'), 
'browser_users');
 
  289        $users->setValue(current($this->
getSettings()->getBrowserLogUsers()));
 
  290        $users->setMulti(
true);
 
  291        $users->setMultiValues($this->
getSettings()->getBrowserLogUsers());
 
  295        $browser->addSubItem($users);
 
  307        $this->tabs_gui->activateTab(static::SECTION_SETTINGS);
 
  308        $this->
setSubTabs(static::SUB_SECTION_COMPONENTS);
 
  310        include_once 
'./Services/Logging/classes/class.ilLogComponentTableGUI.php';
 
  316        $GLOBALS[
'DIC'][
'tpl']->setContent($table->getHTML());
 
  326        foreach (
$_POST[
'level'] as $component_id => $value) {
 
  329            include_once 
'./Services/Logging/classes/class.ilLogComponentLevel.php';
 
  334        ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
  335        $this->ctrl->redirect($this, 
'components');
 
  343            $component->setLevel(
null);
 
  344            $component->update();
 
  346        ilUtil::sendSuccess($this->lng->txt(
'settings_saved'), 
true);
 
  347        $this->ctrl->redirect($this, 
'components');
 
  354        if (!$this->rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  355            $DIC[
'ilErr']->raiseError($this->lng->txt(
'permission_denied'), 
$DIC[
'ilErr']->MESSAGE);
 
  358        $this->tabs_gui->setTabActive(static::SECTION_SETTINGS);
 
  364        $this->tpl->setContent(
$form->getHTML());
 
  375        if (!
$rbacsystem->checkAccess(
'write', $this->object->getRefId())) {
 
  376            $this->
ilias->raiseError($this->lng->txt(
"permission_denied"), $this->ilias->error_obj->MESSAGE);
 
  380        if (
$form->checkInput()) {
 
  384            ilUtil::sendSuccess($this->lng->txt(
'error_settings_saved'), 
true);
 
  385            $this->ctrl->redirect($this, 
'errorSettings');
 
  389        $form->setValuesByPost();
 
  399        $ilAccess = 
$DIC[
'ilAccess'];
 
  401        require_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  402        require_once 
'./Services/Search/classes/class.ilSearchSettings.php';
 
  405        $form->setTitle($this->lng->txt(
'logs_settings'));
 
  406        $form->setFormAction($this->ctrl->getFormAction($this));
 
  408        if ($ilAccess->checkAccess(
'write', 
'', $this->object->getRefId())) {
 
  409            $form->addCommandButton(
'updateErrorSettings', $this->lng->txt(
'save'));
 
  414        $form->addItem($folder);
 
  416        $mail = 
new ilTextInputGUI($this->lng->txt(
'log_error_mail'), 
'error_mail');
 
  418        $form->addItem($mail);
 
  425        require_once(
"Services/Logging/classes/error/class.ilLoggingErrorSettings.php");
 
  431        return $this->error_settings;
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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 sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
redirection script todo: (a better solution should control the processing via a xml file)