4 include_once
'./Services/Logging/classes/class.ilLoggingDBSettings.php';
5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
24 public function __construct($a_parent_obj, $a_parent_cmd =
"")
26 $this->
setId(
'il_log_component');
27 parent::__construct($a_parent_obj, $a_parent_cmd);
36 $this->editable = $a_status;
61 $this->
setRowTemplate(
'tpl.log_component_row.html',
'Services/Logging');
62 $this->
addColumn($this->lng->txt(
'log_component_col_component'),
'component_sortable');
63 $this->
addColumn($this->lng->txt(
'log_component_col_level'),
'level');
69 $this->
addCommandButton(
'resetComponentLevels', $this->lng->txt(
'log_component_btn_reset'));
90 include_once
'./Services/Logging/classes/class.ilLogComponentLevels.php';
97 foreach ($components as $component) {
98 $row[
'id'] = $component->getComponentId();
100 if ($component->getComponentId() ==
'log_root') {
101 $row[
'component'] =
'Root';
102 $row[
'component_sortable'] =
'_' .
$row[
'component'];
104 include_once
'./Services/Component/classes/class.ilComponent.php';
106 $row[
'component_sortable'] = $row[
'component'];
110 $row[
'level'] = (int) $component->getLevel();
128 $this->tpl->setVariable(
'CNAME', $a_set[
'component']);
131 if ($a_set[
'id'] ==
'log_root') {
132 $this->tpl->setVariable(
'TXT_DESC',
$GLOBALS[
'DIC'][
'lng']->txt(
'log_component_root_desc'));
137 $default_option = array( 0 =>
$GLOBALS[
'DIC'][
'lng']->txt(
'default') .
" (" . $array_options[$default_option_value] .
")");
138 $array_options = $default_option + $array_options;
140 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
142 $levels->setOptions($array_options);
143 $levels->setValue((
int) $a_set[
'level']);
145 $this->tpl->setVariable(
'C_SELECT_LEVEL', $levels->render());
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setEditable($a_status)
Set ediatable (write permission granted)
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static getLevelOptions()
Get log level options.
getSettings()
Get settings.
isEditable()
Check if ediatable (write permission granted)
static lookupComponentName($a_component_id)
lookup component name type $ilDB
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static getInstance()
Get instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
static getLogger($a_component_id)
Get component logger.
__construct($a_parent_obj, $a_parent_cmd="")
setMaxCount($a_max_count)
set max.
Component logger with individual log levels by component id.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
setLimit($a_limit=0, $a_default_limit=0)