ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjectTileImageFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 protected $service;
17
23 {
24 $this->service = $service;
25 }
26
30 public function getSupportedFileExtensions() : array
31 {
32 return ["png", "jpg", "jpeg"];
33 }
34
38 public function getByObjId(int $obj_id) : ilObjectTileImage
39 {
40 return new \ilObjectTileImage($this->service, $obj_id);
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
__construct(ilObjectService $service)
Constructor.
getByObjId(int $obj_id)
Get tile image by object id.ilObjectTileImage
getSupportedFileExtensions()
Get supported file extensions.string[]