19declare(strict_types=1);
40 private DataFactory $data_factory,
41 private ?UIFactory $ui_factory =
null,
50 Type::REPO => $this->uri_builder->build(
52 $this->data_factory->refId(
$data[
'ref_id'])
71 if ($this->ui_factory ===
null) {
75 return $this->ui_factory->link()->standard(
77 (
string) $this->
resolve($shortlink),
83 return $this->ui_factory->button()->standard(
Builds a Color from either hex- or rgb values.
The scope of this class is split ilias-conform URI's into components.
__construct(private URIBuilder $uri_builder, private DataFactory $data_factory, private ?UIFactory $ui_factory=null,)
resolveLink(Shortlink $shortlink)
resolveStandardButton(Shortlink $shortlink)
buildName(Shortlink $shortlink)
resolve(Shortlink $shortlink)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)