db
GalleryInfo Class Reference

Public Member Functions

 __construct ($galeryService)
 
 getImageURL (Image $sourceImage, array $parameters=[])
 
 getImageParams (Image $sourceImage, array $parameters=[])
 

Protected Attributes

 $galeryService
 

Detailed Description

Slouzi k ziskani informaci o galerii a obrazcich, ktere jsou v ni spravovany

Constructor & Destructor Documentation

◆ __construct()

__construct (   $galeryService)

Member Function Documentation

◆ getImageParams()

getImageParams ( Image  $sourceImage,
array  $parameters = [] 
)

vraci url na ktrem se da stahnout resizovany obrazek

Parameters
Image$sourceImagezdrojovy obrazek
arrayparametry pro resizovani width = cislo, heigth = cislo nebo type type = ["contain": vleze se do, "cover": da se pokryt] default je contain napr. ["width" => 1234], ["width" => 1234, "type" => "contain"]
Returns
array

◆ getImageURL()

getImageURL ( Image  $sourceImage,
array  $parameters = [] 
)

vraci url na ktrem se da stahnout resizovany obrazek

Parameters
Image$sourceImagezdrojovy obrazek
arrayparametry pro resizovani width = cislo, heigth = cislo nebo type type = ["contain": vleze se do, "cover": da se pokryt] default je contain napr. ["width" => 1234], ["width" => 1234, "type" => "contain"]
Returns
string

Member Data Documentation

◆ $galeryService

$galeryService
protected

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