Public Member Functions | |
| __construct ($thumberService) | |
| getImageURL (Image $sourceImage, array $parameters=[]) | |
Public Attributes | |
| const | VIEW_NAME = '_thumber' |
| const | AVAILABLE_AS = '_thumber' |
Protected Attributes | |
| $thumberService | |
Slouzi k vygenerovani a vraceni nahledu obrazku
| __construct | ( | $thumberService | ) |
| getImageURL | ( | Image | $sourceImage, |
| array | $parameters = [] |
||
| ) |
vraci url na ktrem se da stahnout resizovany obrazek
| Image | $sourceImage | zdrojovy obrazek |
| array | parametry 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"] |
|
protected |
| const AVAILABLE_AS = '_thumber' |
| const VIEW_NAME = '_thumber' |