ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
17 const STANDARD = "standard";
18 const RESPONSIVE = "responsive";
19
25 public function withSource($source);
26
31 public function getSource();
32
37 public function getType();
38
44 public function withAlt($alt);
45
46
51 public function getAlt();
52
53}
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:13
const STANDARD
Types of images.
Definition: Image.php:17
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.
withSource($source)
Set the source (path) of the image.