ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  const STANDARD = "standard";
23  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 }
const STANDARD
Types of images.
Definition: Image.php:22
withAlt($alt)
Set the alternative text for screen readers.
$action
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
getType()
Get the type of the image.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
withAction($action)
Get an image like this with an action.
getAlt()
Get the alternative text for screen readers.
getAction()
Get the action of the image.
withSource($source)
Set the source (path) of the image.
$source
Definition: linkback.php:22
getSource()
Get the source (path) of the image.