4include_once
'./Services/Object/classes/class.ilObjectGUI.php';
38 public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
43 parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
50 $this->tabs_gui = $ilTabs;
53 $this->lng->loadLanguageModule(
'logging');
54 $this->lng->loadLanguageModule(
'log');
56 include_once
'./Services/Logging/classes/public/class.ilLoggerFactory.php';
78 $next_class = $this->ctrl->getNextClass($this);
79 $cmd = $this->ctrl->getCmd();
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);
112 global $rbacsystem, $ilAccess;
114 if ($ilAccess->checkAccess(
"read",
'',$this->object->getRefId()))
116 $this->tabs_gui->addTarget(
117 static::SECTION_SETTINGS,
118 $this->ctrl->getLinkTargetByClass(
'ilobjloggingsettingsgui',
"settings")
121 if ($ilAccess->checkAccess(
'edit_permission',
'',$this->object->getRefId()))
123 $this->tabs_gui->addTarget(
125 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm")
132 $this->tabs_gui->addSubTab(
133 static::SUB_SECTION_MAIN,
134 $this->lng->txt(static::SUB_SECTION_MAIN),
135 $this->ctrl->getLinkTarget($this,
'settings')
137 $this->tabs_gui->addSubTab(
138 static::SUB_SECTION_COMPONENTS,
139 $this->lng->txt(static::SUB_SECTION_COMPONENTS),
140 $this->ctrl->getLinkTarget($this,
'components')
143 $this->tabs_gui->activateSubTab($a_section);
148 include_once(
"Services/Logging/classes/class.ilLoggingDBSettings.php");
169 if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
171 $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->MESSAGE);
174 $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()))
200 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
205 if(
$form->checkInput())
214 $this->
getLogger()->info(print_r(
$form->getInput(
'browser_users'),TRUE));
219 $this->ctrl->redirect($this,
'settings');
224 $form->setValuesByPost();
238 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
239 include_once
'./Services/Search/classes/class.ilSearchSettings.php';
242 $form->setTitle($this->lng->txt(
'logs_settings'));
243 $form->setFormAction($this->ctrl->getFormAction($this));
245 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
247 $form->addCommandButton(
'updateSettings', $this->lng->txt(
'save'));
252 $level->setValue($this->
getSettings()->getLevel());
253 $form->addItem($level);
256 $cache->setInfo($this->lng->txt(
'log_cache_info'));
258 $cache->setChecked($this->
getSettings()->isCacheEnabled());
259 $form->addItem($cache);
261 $cache_level =
new ilSelectInputGUI($this->lng->txt(
'log_cache_level'),
'cache_level');
263 $cache_level->setValue($this->
getSettings()->getCacheLevel());
264 $cache->addSubItem($cache_level);
267 $memory->setValue(1);
268 $memory->setChecked($this->
getSettings()->isMemoryUsageEnabled());
269 $form->addItem($memory);
273 $browser->setValue(1);
274 $browser->setChecked($this->
getSettings()->isBrowserLogEnabled());
275 $form->addItem($browser);
278 $users =
new ilTextInputGUI($this->lng->txt(
'log_browser_users'),
'browser_users');
279 $users->setValue(current($this->
getSettings()->getBrowserLogUsers()));
280 $users->setMulti(TRUE);
281 $users->setMultiValues($this->
getSettings()->getBrowserLogUsers());
285 $browser->addSubItem($users);
297 $this->tabs_gui->activateTab(static::SECTION_SETTINGS);
298 $this->
setSubTabs(static::SUB_SECTION_COMPONENTS);
300 include_once
'./Services/Logging/classes/class.ilLogComponentTableGUI.php';
305 $GLOBALS[
'tpl']->setContent($table->getHTML());
316 foreach(
$_POST[
'level'] as $component_id => $value)
320 include_once
'./Services/Logging/classes/class.ilLogComponentLevel.php';
322 $level->setLevel($value);
327 $this->ctrl->redirect($this,
'components');
334 $component->setLevel(
null);
335 $component->update();
338 $this->ctrl->redirect($this,
'components');
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.
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.
prepareOutput()
prepare output
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['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
redirection script todo: (a better solution should control the processing via a xml file)