19 declare(strict_types=1);
36 private \ILIAS\ResourceStorage\Services
$irss;
49 $this->irss = $DIC->resourceStorage();
57 foreach ($this->data_provider->getIdentifications() as $resource_identification) {
58 $revision_to_card =
new RevisionToComponent($this->getCurrentRevision($resource_identification));
59 $cards[] = $revision_to_card->getAsCard()
61 $this->action_builder->buildDropDownForResource($resource_identification)
65 return $this->ui_factory->deck($cards)->withSmallCardsSize();
71 $items_per_page = (
int) ceil($this->request->getItemsPerPage() / ($cards_per_row ** 1)) * ($cards_per_row ** 1);
72 $this->request->setItemsPerPage($items_per_page);
77 yield
from $this->upload_builder->getDropZone();
79 yield $this->ui_factory->panel()
80 ->standard($this->request->getTitle(), $this->
buildDeck())
82 $this->view_control_builder->getPagination(),
83 $this->view_control_builder->getSortation()
86 yield
from $this->action_builder->getModals();
__construct(private Request $request, private Factory $ui_factory, private \ilLanguage $language, private Services $http, private TableDataProvider $data_provider, private ActionBuilder $action_builder, private ViewControlBuilder $view_control_builder, private UploadBuilder $upload_builder)
This is how the factory for UI elements looks.
ILIAS ResourceStorage Services $irss