3 declare(strict_types=1);
    50         $this->
ctrl = $DIC->ctrl();
    51         $this->
lng = $DIC->language();
    52         $this->
access = $DIC->access();
    53         $this->rbacsystem = $DIC->rbac()->system();
    54         $ilCtrl = $DIC->ctrl();
    55         $lng = $DIC->language();
    58         $this->
ui = $DIC->ui();
    72         $this->
setRowTemplate(
"tpl.style_image_row.html", 
"Services/Style/Content/Images");
    77         if ($this->access_manager->checkWrite()) {
    90     public function getItems(): 
void    94         foreach ($this->image_manager->getImages() as $i) {
    96                 "file" => $i->getFilename(),
   103     protected function fillRow(array $a_set): 
void   109         $image = $a_set[
"obj"];
   111         $image_file = $this->image_manager->getWebPath($image);
   112         if (is_file($image_file)) {
   113             $this->tpl->setCurrentBlock(
"thumbnail");
   114             $this->tpl->setVariable(
"IMG_ALT", $image->getFilename());
   115             $this->tpl->setVariable(
"IMG_SRC", $image_file);
   116             $this->tpl->parseCurrentBlock();
   119         if ($image->getWidth() > 0 && $image->getHeight() > 0) {
   120             $this->tpl->setVariable(
   122                 $image->getWidth() . 
"px x " . $image->getHeight() . 
"px"   126         $size = $image->getSize();
   127         $this->tpl->setVariable(
"VAL_FILENAME", $image->getFilename());
   128         $this->tpl->setVariable(
   130             round($size->getSize(), 1) . 
" " . 
"kB"   132         $this->tpl->setVariable(
"FILE", $image->getFilename());
   134         if ($this->access_manager->checkWrite()) {
   135             $ilCtrl->setParameter($this->parent_obj, 
"file", rawurlencode($image->getFilename()));
   138             if ($this->image_manager->supportsResize($image)) {
   139                 $links[] = $ui->
factory()->link()->standard(
   140                     $this->
lng->txt(
"sty_resize"),
   141                     $ilCtrl->getLinkTargetByClass(
"ilContentStyleImageGUI", 
"resizeImageForm")
   145             $dd = $ui->
factory()->dropdown()->standard($links);
   147             $this->tpl->setVariable(
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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)
 
setEnableTitle(bool $a_enabletitle)
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
__construct(object $a_parent_obj, string $a_parent_cmd, Access\StyleAccessManager $access_manager, Content\ImageManager $image_manager)
Constructor. 
 
ilObjStyleSheet $style_obj
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Access StyleAccessManager $access_manager
 
Provides fluid interface to RBAC services. 
 
Main business logic for content style images. 
 
fillRow(array $a_set)
Standard Version of Fill Row. 
 
renderer()
Get a renderer for UI components. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
TableGUI class for style editor (image list) 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
Content ImageManager $image_manager
 
Manages access to content style editing. 
 
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)
 
factory()
Get the factory that crafts UI components. 
 
addMultiCommand(string $a_cmd, string $a_text)
 
setEnableHeader(bool $a_enableheader)