19declare(strict_types=1);
36 private string $file_name,
37 private bool $isolated =
true
39 $modification_time = @filemtime($uri);
42 if ($base !==
null && str_starts_with($uri, $base)) {
43 $uri = substr($uri, strlen($base));
49 'mt' => $modification_time,
59 public static function fromArray(array $raw_payload): self
64 empty($raw_payload[
'ni'])
74 if ($base !==
null && !str_starts_with($uri,
'/')) {
88 return $this->file_name;
107 return $this->isolated;
isIsolated()
Whether the file is delivered from the content domain when User Content Isolation is active (the defa...
__construct(private string $uri, private string $file_name, private bool $isolated=true)
static fromArray(array $raw_payload)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc