Skip to content

Commit

Permalink
Tracking: fill interfaces, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
chlulei committed Nov 14, 2024
1 parent 925ac8e commit 01920fb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

namespace ILIAS\Tracking\View\DataRetrieval;

use ILIAS\Tracking\View\DataRetrieval\FilterInterface;
use ILIAS\Tracking\View\DataRetrieval\Info\ViewInfoInterface;

interface DataRetrievalInterface
{
public function filter(): FilterInterface;

public function retrieveViewInfo(FilterInterface $filter): ViewInfoInterface;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@

interface FilterInterface
{
public function withUserIds(): self;

public function withObjectTypes(): self;

public function withObjectIds(): self;

public function getUserIds(): array;

public function getObjectTypes(): array;

public function getObjectIds(): array;
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@

namespace ILIAS\Tracking\View\Renderer;

use ILIAS\Tracking\View\DataRetrieval\Info\LPInfoInterface;
use ILIAS\Tracking\View\DataRetrieval\Info\ObjectInfoInterface;
use ILIAS\Tracking\View\PropertyList\PropertyListInterface;
use ILIAS\UI\Component\Item\Standard as UIStandardItem;
use ILIAS\UI\Component\Chart\ProgressMeter\Standard as UIStandardProgressMeter;

interface RendererInterface
{
public function renderStandardProgressMeter(
LPInfoInterface $lp_info
): UIStandardProgressMeter;

public function renderStandardItem(
ObjectInfoInterface $object_info,
PropertyListInterface $property_list
): UIStandardItem;
}

0 comments on commit 01920fb

Please sign in to comment.