ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
14{
18 const STANDARD = "standard";
19 const RESPONSIVE = "responsive";
20
26 public function withSource($source);
27
32 public function getSource();
33
38 public function getType();
39
45 public function withAlt($alt);
46
47
52 public function getAlt();
53
59 public function withAction($url);
60
65 public function getAction();
66}
$source
Definition: linkback.php:22
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:18
getAlt()
Get the alternative text for screen readers.
withAction($url)
Get an image like this with an action.
withAlt($alt)
Set the alternative text for screen readers.
getType()
Get the type of the image.
getSource()
Get the source (path) of the image.
withSource($source)
Set the source (path) of the image.
$url