ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Style\Content\Image Class Reference

Image of style. More...

+ Collaboration diagram for ILIAS\Style\Content\Image:

Public Member Functions

 __construct (string $path, DataSize $size, int $width, int $height)
 
 getPath ()
 
 getFilename ()
 
 getType ()
 
 getSize ()
 
 getWidth ()
 
 getHeight ()
 

Protected Attributes

string $path
 
string $type
 
DataSize $size
 
int $width
 
int $height
 

Detailed Description

Image of style.

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

Definition at line 29 of file class.Image.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Style\Content\Image::__construct ( string  $path,
DataSize  $size,
int  $width,
int  $height 
)

Definition at line 37 of file class.Image.php.

References ILIAS\Style\Content\Image\$height, ILIAS\Style\Content\Image\$path, ILIAS\Style\Content\Image\$size, and ILIAS\Style\Content\Image\$width.

42  {
43  $this->path = $path;
44  $this->width = $width;
45  $this->height = $height;
46  $this->size = $size;
47  }

Member Function Documentation

◆ getFilename()

ILIAS\Style\Content\Image::getFilename ( )

Definition at line 54 of file class.Image.php.

Referenced by ILIAS\Style\Content\ImageManager\supportsResize().

54  : string
55  {
56  return basename($this->path);
57  }
+ Here is the caller graph for this function:

◆ getHeight()

ILIAS\Style\Content\Image::getHeight ( )

Definition at line 74 of file class.Image.php.

References ILIAS\Style\Content\Image\$height.

74  : int
75  {
76  return $this->height;
77  }

◆ getPath()

ILIAS\Style\Content\Image::getPath ( )

Definition at line 49 of file class.Image.php.

References ILIAS\Style\Content\Image\$path.

Referenced by ILIAS\Style\Content\ImageManager\getWebPath().

49  : string
50  {
51  return $this->path;
52  }
+ Here is the caller graph for this function:

◆ getSize()

ILIAS\Style\Content\Image::getSize ( )

Definition at line 64 of file class.Image.php.

References ILIAS\Style\Content\Image\$size.

64  : DataSize
65  {
66  return $this->size;
67  }

◆ getType()

ILIAS\Style\Content\Image::getType ( )

Definition at line 59 of file class.Image.php.

59  : string
60  {
61  return pathinfo($this->path, PATHINFO_EXTENSION);
62  }

◆ getWidth()

ILIAS\Style\Content\Image::getWidth ( )

Definition at line 69 of file class.Image.php.

References ILIAS\Style\Content\Image\$width.

69  : int
70  {
71  return $this->width;
72  }

Field Documentation

◆ $height

int ILIAS\Style\Content\Image::$height
protected

◆ $path

string ILIAS\Style\Content\Image::$path
protected

◆ $size

DataSize ILIAS\Style\Content\Image::$size
protected

◆ $type

string ILIAS\Style\Content\Image::$type
protected

Definition at line 32 of file class.Image.php.

◆ $width

int ILIAS\Style\Content\Image::$width
protected

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