ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjectTileImageFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 {
24 
25  public function __construct(ilObjectService $service)
26  {
27  $this->service = $service;
28  }
29 
33  public function getSupportedFileExtensions(): array
34  {
35  return ['png', 'jpg', 'jpeg'];
36  }
37 
38  public function getByObjId(int $obj_id): ilObjectTileImage
39  {
40  return new ilObjectTileImage($this->service, $obj_id);
41  }
42 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjectService $service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...