ILIAS  release_8 Revision v8.24
Image.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
27
35{
39 public const STANDARD = "standard";
40 public const RESPONSIVE = "responsive";
41
45 public function withSource(string $source): Image;
46
50 public function getSource(): string;
51
55 public function getType(): string;
56
60 public function withAlt(string $alt): Image;
61
62
66 public function getAlt(): string;
67
72 public function withAction($action): Image;
73
78 public function getAction();
79}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
getAction()
Get the action of the image.
const STANDARD
Types of images.
Definition: Image.php:39
getAlt()
Get the alternative text for screen readers.
withAlt(string $alt)
Set the alternative text for screen readers.
getType()
Get the type of the image.
getSource()
Get the source (path) of the image.
withAction($action)
Get an image like this with an action.
Definition: Image.php:105
withSource(string $source)
Set the source (path) of the image.
Interface to be extended by components that have the possibility to bind to Javascript.
$source
Definition: metadata.php:93
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.