ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 
)

Member Function Documentation

◆ getFilename()

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

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

54 : string
55 {
56 return basename($this->path);
57 }

◆ getHeight()

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

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

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

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

◆ getPath()

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

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

49 : string
50 {
51 return $this->path;
52 }

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

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

+ Here is the caller graph for this function:

◆ getSize()

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

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

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

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

◆ 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.

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

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

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: