ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjectTileImageFactory Class Reference

tile image factory More...

+ Inheritance diagram for ilObjectTileImageFactory:
+ Collaboration diagram for ilObjectTileImageFactory:

Public Member Functions

 __construct (ilObjectService $service)
 Constructor. More...
 
 getSupportedFileExtensions ()
 Get supported file extensions.
Returns
string[]
More...
 
 getByObjId (int $obj_id)
 Get tile image by object id.
Parameters
int$objId
Returns
ilObjectTileImage
More...
 

Protected Attributes

 $service
 

Detailed Description

tile image factory

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 11 of file class.ilObjectTileImageFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjectTileImageFactory::__construct ( ilObjectService  $service)

Constructor.

Parameters
ilObjectService$service

Definition at line 22 of file class.ilObjectTileImageFactory.php.

References $service.

23  {
24  $this->service = $service;
25  }

Member Function Documentation

◆ getByObjId()

ilObjectTileImageFactory::getByObjId ( int  $obj_id)

Get tile image by object id.

Parameters
int$objId
Returns
ilObjectTileImage

Implements ilObjectTileImageFactoryInterface.

Definition at line 38 of file class.ilObjectTileImageFactory.php.

39  {
40  return new \ilObjectTileImage($this->service, $obj_id);
41  }

◆ getSupportedFileExtensions()

ilObjectTileImageFactory::getSupportedFileExtensions ( )

Get supported file extensions.

Returns
string[]

Implements ilObjectTileImageFactoryInterface.

Definition at line 30 of file class.ilObjectTileImageFactory.php.

30  : array
31  {
32  return ["png", "jpg", "jpeg"];
33  }

Field Documentation

◆ $service

ilObjectTileImageFactory::$service
protected

Definition at line 16 of file class.ilObjectTileImageFactory.php.

Referenced by __construct().


The documentation for this class was generated from the following file: