ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
11
class
ilObjectTileImageFactory
implements
ilObjectTileImageFactoryInterface
12
{
16
protected
$service
;
17
22
public
function
__construct
(
ilObjectService
$service
)
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
}
ilObjectTileImageFactory
tile image factory
Definition:
class.ilObjectTileImageFactory.php:11
ilObjectTileImageFactory\$service
$service
Definition:
class.ilObjectTileImageFactory.php:16
ilObjectService
Object service.
Definition:
class.ilObjectService.php:11
ilObjectTileImageFactory\__construct
__construct(ilObjectService $service)
Constructor.
Definition:
class.ilObjectTileImageFactory.php:22
ilObjectTileImageFactory\getSupportedFileExtensions
getSupportedFileExtensions()
Get supported file extensions.string[]
Definition:
class.ilObjectTileImageFactory.php:30
ilObjectTileImage
Tile image object.
Definition:
class.ilObjectTileImage.php:11
php
ilObjectTileImageFactory\getByObjId
getByObjId(int $obj_id)
Get tile image by object id.ilObjectTileImage
Definition:
class.ilObjectTileImageFactory.php:38
ilObjectTileImageFactoryInterface
Tile image factory.
Definition:
interface.ilObjectTileImageFactoryInterface.php:11
Services
Object
CommonSettings
TileImage
classes
class.ilObjectTileImageFactory.php
Generated on Thu Jan 16 2025 19:02:27 for ILIAS by
1.8.13 (using
Doxyfile
)