db
Thumber Class Reference

Public Member Functions

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

Public Attributes

const VIEW_NAME = '_thumber'
 
const AVAILABLE_AS = '_thumber'
 

Protected Attributes

 $thumberService
 

Detailed Description

Slouzi k vygenerovani a vraceni nahledu obrazku

Constructor & Destructor Documentation

◆ __construct()

__construct (   $thumberService)

Member Function Documentation

◆ 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

◆ $thumberService

$thumberService
protected

◆ AVAILABLE_AS

const AVAILABLE_AS = '_thumber'

◆ VIEW_NAME

const VIEW_NAME = '_thumber'

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