PHP Class Jarves\Twig\FileExtension

Inheritance: extends Twig_Extension
Afficher le fichier Open project: jarves/jarves

Protected Properties

Свойство Type Description
$jarves Jarves\Jarves

Méthodes publiques

Méthode 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 méthode

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

getFunctions() public méthode

public getFunctions ( )

getJarves() public méthode

public getJarves ( ) : Jarves
Résultat Jarves\Jarves

getName() public méthode

public getName ( )

publicUrl() public méthode

public publicUrl ( integer | string $id ) : string
$id integer | string path or file id
Résultat string

resizeImage() public méthode

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
Résultat string

thumbnail() public méthode

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
Résultat string

Property Details

$jarves protected_oe property

protected Jarves,Jarves $jarves
Résultat Jarves\Jarves