34         string $a_parent_cmd = 
"",
    35         bool $a_has_write = 
false    39         $this->
ctrl = $DIC->ctrl();
    40         $this->
lng = $DIC->language();
    41         $this->obj_definition = $DIC[
"objDefinition"];
    43         $this->component_repository = $DIC[
"component.repository"];
    44         $ilCtrl = $DIC->ctrl();
    45         $lng = $DIC->language();
    49         $this->
setId(
"repmodtbl");
    67             "tpl.table_row_module.html",
    68             "components/ILIAS/Repository/Administration"    75         $this->old_grp_id = 0;
    85         $this->pos_group_options = [0 => 
$lng->
txt(
"rep_new_item_group_unassigned")];
    86         $pos_group_map[0] = 
"9999";
    89             $this->pos_group_options[$item[
"id"]] = $item[
"title"];
    90             $pos_group_map[$item[
"id"]] = $item[
"pos"];
   129         foreach ($this->obj_definition->getAllRepositoryTypes(
false) as 
$id) {
   130             if ($this->obj_definition->isAllowedInRepository(
$id)) {
   131                 if ($this->obj_definition->isSystemObject(
$id)) {
   134                 if (in_array(
$id, [
"lng", 
"rolt", 
"sty", 
"tax", 
"usr"])) {
   138                     "object" => $this->obj_definition->getClassName(
$id),
   141                     "grp" => $this->obj_definition->getGroupOfObj(
$id),
   142                     "default_pos" => $this->obj_definition->getPositionByType(
$id),
   155         foreach ($obj_types as $obj_type => $item) {
   156             $org_pos = 
$ilSetting->get(
"obj_add_new_pos_" . $obj_type);
   157             if (!(
int) $org_pos) {
   159                 $org_pos = $item[
"default_pos"];
   161             if (strlen($org_pos) < 8) {
   163                 $org_pos = $pos_group_map[0] . str_pad($org_pos, 4, 
"0", STR_PAD_LEFT);
   166             $pos_grp_id = 
$ilSetting->get(
"obj_add_new_pos_grp_" . $obj_type, 
'0');
   169             if ($item[
"grp"] != 
"") {
   170                 $group = $objDefinition->getGroup($item[
"grp"]);
   171                 $group = $group[
"name"];
   176                 "object" => $item[
"object"],
   177                 "caption" => $item[
"caption"],
   178                 "subdir" => $item[
"subdir"],
   179                 "pos" => (
int) substr($org_pos, 4),
   180                 "pos_group" => $pos_grp_id,
   181                 "creation" => !
$ilSetting->get(
"obj_dis_creation_" . $obj_type, 
'0'),
   182                 "group_id" => $item[
"grp"],
   184                 "sort_key" => (
int) $org_pos
   193     protected function fillRow(array $a_set): void
   195         if ((
int) $a_set[
"pos_group"] !== $this->old_grp_id) {
   196             $this->tpl->setCurrentBlock(
"pos_grp_bl");
   197             $this->tpl->setVariable(
"TXT_POS_GRP", $this->pos_group_options[$a_set[
"pos_group"]] ?? 
"");
   198             $this->tpl->parseCurrentBlock();
   200             $this->tpl->setCurrentBlock(
"tbl_content");
   201             $this->tpl->parseCurrentBlock();
   203             $this->css_row = ($this->css_row !== 
"tblrow1")
   206             $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
   208             $this->old_grp_id = $a_set[
"pos_group"];
   212         if ($a_set[
"group_id"] != 
"") {
   213             $this->tpl->setCurrentBlock(
"group");
   214             $this->tpl->setVariable(
"VAL_GROUP", $a_set[
"group"]);
   215             $this->tpl->setVariable(
"VAL_GROUP_ID", $a_set[
"group_id"]);
   216             $this->tpl->parseCurrentBlock();
   219         $this->tpl->setCurrentBlock(
"rep_object");
   221         $this->tpl->setVariable(
"TXT_REP_OBJECT", $a_set[
"caption"]);
   222         $this->tpl->setVariable(
"TXT_REP_OBJECT_ID", $a_set[
"id"]);
   223         $this->tpl->setVariable(
   231             "obj_grp[" . $a_set[
"id"] . 
"]",
   232             $this->pos_group_options,
   236         $this->tpl->setVariable(
"GROUP_SEL", $sel);
   239         $this->tpl->setVariable(
"VAR_POS", 
"obj_pos[" . $a_set[
"id"] . 
"]");
   243         $this->tpl->setVariable(
"VAR_DISABLE_CREATION", 
"obj_enbl_creation[" . $a_set[
"id"] . 
"]");
   244         if ($a_set[
"creation"]) {
   245             $this->tpl->setVariable(
   246                 "CHECKED_DISABLE_CREATION",
   247                 ' checked="checked" '   251         $this->tpl->setVariable(
"TXT_MODULE_NAME", $a_set[
"subdir"]);
   261         $plugins = $this->component_repository->getPluginSlotById($slotId)->getActivePlugins();
   262         foreach ($plugins as 
$plugin) {
   263             $obj_types[$plugin->getId()] = [
   264                 "object" => $plugin->getName(),
   266                 "subdir" => 
$lng->
txt(
"cmps_plugin"),
   268                 "default_pos" => 2000
 
Readable part of repository interface to ilComponentDataDB. 
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
 
static getNewItemGroups()
 
__construct(ilObjRepositorySettingsGUI $a_parent_obj, string $a_parent_cmd="", bool $a_has_write=false)
 
setExternalSorting(bool $a_val)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
static lookupTxtById(string $plugin_id, string $lang_var)
 
getPluginComponents(array $obj_types, string $component, string $slotName, string $slotId)
 
__construct(Container $dic, ilPlugin $plugin)
 
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)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilComponentRepository $component_repository
 
ilObjectDefinition $obj_definition
 
setEnableHeader(bool $a_enableheader)
 
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)