LogoImage
in package
LogoImage
Table of Contents
Methods
- getUrl() : string|null
- Returns the URL of the logo image in desired maximum sizes (width and/or height)
- hasImage() : bool
- Indicates there is a logo image
- set() : mixed
- Sets a new icon for the installation.
- buildFileName() : mixed
- deleteFiles() : mixed
- getFile() : mixed
- getOriginalFile() : mixed
Methods
getUrl()
Returns the URL of the logo image in desired maximum sizes (width and/or height)
public
static getUrl([int|null $maxWidth = null ][, int|null $maxHeight = null ][, bool $autoResize = true ]) : string|null
Parameters
- $maxWidth : int|null = null
-
the maximum width in pixel
- $maxHeight : int|null = null
-
the maximum width in pixel
- $autoResize : bool = true
-
automatically resize to given size if not available yet
Return values
string|nullhasImage()
Indicates there is a logo image
public
static hasImage() : bool
Return values
bool —is there a logo image
set()
Sets a new icon for the installation.
public
static set([UploadedFile|null $file = null ]) : mixed
Parameters
- $file : UploadedFile|null = null
buildFileName()
private
static buildFileName(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
- $maxWidth : mixed
- $maxHeight : mixed
deleteFiles()
private
static deleteFiles() : mixed
getFile()
private
static getFile(mixed $maxWidth, mixed $maxHeight) : mixed
Parameters
- $maxWidth : mixed
- $maxHeight : mixed
getOriginalFile()
private
static getOriginalFile() : mixed