ILIAS  release_7 Revision v7.30-3-g800a261c036
Image.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
6
10
18{
22 public const STANDARD = "standard";
23 public const RESPONSIVE = "responsive";
24
30 public function withSource($source);
31
36 public function getSource();
37
42 public function getType();
43
49 public function withAlt($alt);
50
51
56 public function getAlt();
57
63 public function withAction($action);
64
69 public function getAction();
70}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
getAction()
Get the action of the image.
const STANDARD
Types of images.
Definition: Image.php:22
getAlt()
Get the alternative text for screen readers.
withAlt($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:116
withSource($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:76
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.