38         string $a_parent_cmd = 
"",
    39         protected bool $has_write = 
false    43         $this->
ctrl = $DIC->ctrl();
    44         $this->
lng = $DIC->language();
    45         $this->
access = $DIC->access();
    46         $this->tile = 
new Tile($DIC);
    47         $this->ui_factory = $DIC->ui()->factory();
    48         $this->ui_renderer = $DIC->ui()->renderer();
    49         $ilCtrl = $DIC->ctrl();
    50         $lng = $DIC->language();
    52         $this->
setId(
"bdgobdg");
    60         if ($this->has_write) {
    70         if ($this->has_write) {
    78         $this->
setRowTemplate(
"tpl.object_badge_row.html", 
"Services/Badge");
    97         $this->filter[
"object"] = $object->getValue();
   106             if (!in_array(
"bdga", $type->getValidObjectTypes(), 
true)) {
   113         $type->setOptions($options);
   114         $this->filter[
"type"] = $type->getValue();
   127                 'id' => (
int) $badge_item[
'id'],
   128                 'active' => $badge_item[
'active'],
   129                 'type' => $type_caption,
   130                 'title' => $badge_item[
'title'],
   131                 'container' => $badge_item[
'parent_title'],
   132                 'container_deleted' => (
bool) ($badge_item[
'deleted'] ?? 
false),
   133                 'container_id' => (
int) $badge_item[
'parent_id'],
   134                 'container_type' => $badge_item[
'parent_type'],
   135                 'renderer' => fn() => $this->tile->asTitle(
   136                     $this->tile->modalContent(
new ilBadge((
int) $badge_item[
'id']))
   144     protected function fillRow(array $a_set): void
   151             $this->ui_renderer->render($this->ui_factory->symbol()->icon()->custom(
   153                 $lng->
txt(
'obj_' . $a_set[
'container_type'])
   159         if ($a_set[
'container_deleted'] ?? 
false) {
   160             $container_parts[] = 
' <span class="il_ItemAlertProperty">' . 
$lng->
txt(
'deleted') . 
'</span>';
   163             $ref_id = array_shift($ref_ids);
   164             if ($ilAccess->checkAccess(
'read', 
'', 
$ref_id)) {
   165                 $container_url = ilLink::_getLink(
$ref_id);
   169         $containter_info = implode(
' ', $container_parts);
   170         if ($container_url !== 
'') {
   171             $this->tpl->setCurrentBlock(
'container_link_bl');
   172             $this->tpl->setVariable(
'TXT_CONTAINER', $containter_info);
   173             $this->tpl->setVariable(
'URL_CONTAINER', $container_url);
   175             $this->tpl->setCurrentBlock(
'container_nolink_bl');
   176             $this->tpl->setVariable(
'TXT_CONTAINER_STATIC', $containter_info);
   178         $this->tpl->parseCurrentBlock();
   180         if ($this->has_write) {
   181             $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
   184         $this->tpl->setVariable(
'PREVIEW', $this->ui_renderer->render($a_set[
'renderer']()));
   185         $this->tpl->setVariable(
'TXT_TYPE', $a_set[
'type']);
   186         $this->tpl->setVariable(
   191         if ($this->has_write) {
   192             $ilCtrl->setParameter($this->
getParentObject(), 
'pid', $a_set[
'container_id']);
   198             $this->tpl->setVariable(
'TXT_LIST', 
$lng->
txt(
'users'));
   199             $this->tpl->setVariable(
'URL_LIST', 
$url);
 
An entity that renders components to a string output. 
 
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)
 
setResetCommand(string $a_val, string $a_caption="")
 
__construct(object $a_parent_obj, string $a_parent_cmd="", protected bool $has_write=false)
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
static getObjectInstances(array $a_filter=null)
 
loadLanguageModule(string $a_module)
Load language module. 
 
readonly Factory $ui_factory
 
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type. 
 
static getExtendedTypeCaption(ilBadgeType $a_type)
 
setDefaultOrderField(string $a_defaultorderfield)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
readonly Renderer $ui_renderer
 
setFilterCommand(string $a_val, string $a_caption="")
 
TableGUI class for badge listing. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
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)
 
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
 
addMultiCommand(string $a_cmd, string $a_text)