PHP Class Jarves\Twig\FileExtension

Inheritance: extends Twig_Extension
Datei anzeigen Open project: jarves/jarves

Protected Properties

Property Type Description
$jarves Jarves\Jarves

Public Methods

Method Description
__construct ( Jarves $jarves, WebFilesystem $webFilesystem )
getFunctions ( )
getJarves ( ) : Jarves
getName ( )
publicUrl ( integer | string $id ) : string
resizeImage ( integer | string $id, integer $maxWidth = 100, integer $maxHeight = 100, $quality = 8 ) : string
thumbnail ( integer | string $id, integer $maxWidth = 100, integer $maxHeight = 100, $quality = 8, boolean $resize = true ) : string

Method Details

__construct() public method

public __construct ( Jarves $jarves, WebFilesystem $webFilesystem )
$jarves Jarves\Jarves
$webFilesystem Jarves\Filesystem\WebFilesystem

getFunctions() public method

public getFunctions ( )

getJarves() public method

public getJarves ( ) : Jarves
return Jarves\Jarves

getName() public method

public getName ( )

publicUrl() public method

public publicUrl ( integer | string $id ) : string
$id integer | string path or file id
return string

resizeImage() public method

public resizeImage ( integer | string $id, integer $maxWidth = 100, integer $maxHeight = 100, $quality = 8 ) : string
$id integer | string path or file id
$maxWidth integer
$maxHeight integer
return string

thumbnail() public method

public thumbnail ( integer | string $id, integer $maxWidth = 100, integer $maxHeight = 100, $quality = 8, boolean $resize = true ) : string
$id integer | string path or file id
$maxWidth integer
$maxHeight integer
$resize boolean
return string

Property Details

$jarves protected_oe property

protected Jarves,Jarves $jarves
return Jarves\Jarves