ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
PermanentLinkManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\StaticURL\Services as StaticUrl;
26
28{
29 public function __construct(
30 protected StaticUrl $static_url,
31 protected int $wsp_id
32 ) {
33 }
34
35 public function getPermanentLink(): string
36 {
37 return (string) $this->static_url->builder()->build(
38 'wsp',
39 $this->wsp_id > 0 ? new ReferenceId($this->wsp_id) : null
40 );
41 }
42
43 public function setPermanentLink(): void
44 {
46 }
47}
static setPermaLink(string $perma_link)
$static_url
Definition: goto.php:29