3 declare(strict_types=1);
    16     public function __construct(
object $a_parent_obj, 
string $a_parent_cmd = 
"")
    19         $this->component_repo = $DIC[
"component.repository"];
    21         $this->
setId(
'il_log_component');
    30         $this->editable = $a_status;
    44     public function init(): void
    49         $this->
setRowTemplate(
'tpl.log_component_row.html', 
'Services/Logging');
    50         $this->
addColumn($this->
lng->txt(
'log_component_col_component'), 
'component_sortable');
    51         $this->
addColumn($this->
lng->txt(
'log_component_col_level'), 
'level');
    57             $this->
addCommandButton(
'resetComponentLevels', $this->
lng->txt(
'log_component_btn_reset'));
    79         foreach ($components as $component) {
    80             $row[
'id'] = $component->getComponentId();
    81             if ($component->getComponentId() == 
'log_root') {
    82                 $row[
'component'] = 
'Root';
    83                 $row[
'component_sortable'] = 
'_' . $row[
'component'];
    85                 if ($this->component_repo->hasComponentId(
    86                     $component->getComponentId()
    88                     $row[
'component'] = $this->component_repo->getComponentById(
    89                         $component->getComponentId()
    92                     $row[
'component'] = 
"Unknown (" . $component->getComponentId() . 
")";
    94                 $row[
'component_sortable'] = $row[
'component'];
    96             $row[
'level'] = (
int) $component->getLevel();
   106     protected function fillRow(array $a_set): void
   108         $this->tpl->setVariable(
'CNAME', $a_set[
'component']);
   109         if ($a_set[
'id'] == 
'log_root') {
   110             $this->tpl->setVariable(
'TXT_DESC', $this->
lng->txt(
'log_component_root_desc'));
   115         $default_option = array( 0 => $this->
lng->txt(
'default') . 
" (" . $array_options[$default_option_value] . 
")");
   116         $array_options = $default_option + $array_options;
   119         $levels->setOptions($array_options);
   120         $levels->setValue($a_set[
'level']);
   121         $this->tpl->setVariable(
'C_SELECT_LEVEL', $levels->render());
 
Readable part of repository interface to ilComponentDataDB. 
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
ilComponentRepository $component_repo
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
getSettings()
Get settings. 
 
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector. 
 
setEditable(bool $a_status)
Set ediatable (write permission granted) 
 
isEditable()
Check if ediatable (write permission granted) 
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
ilLoggingDBSettings $settings
 
setLimit(int $a_limit=0, int $a_default_limit=0)
 
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
 
Component logger with individual log levels by component id. 
 
setMaxCount(int $a_max_count)
set max. 
 
__construct(object $a_parent_obj, string $a_parent_cmd="")