PHP 클래스 eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\FileSizeExtension

상속: extends Twig_Extensio\Twig_Extension
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$configResolver
$localeConverter
$suffixes
$translator

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Translation\TranslatorInterface $translator, array $suffixes, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface $localeConverter )
getFilters ( ) : array Returns a list of filters to add to the existing list.
getName ( ) : string Returns the name of the extension.
sizeFilter ( integer $number, integer $precision ) : string Returns the binary file size, $precision will determine the decimal number precision, and the Locale will alter the format of the result by choosing between coma or point pattern.

비공개 메소드들

메소드 설명
getLocale ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Translation\TranslatorInterface $translator, array $suffixes, eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver, eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface $localeConverter )
$translator Symfony\Component\Translation\TranslatorInterface
$suffixes array
$configResolver eZ\Publish\Core\MVC\ConfigResolverInterface
$localeConverter eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface

getFilters() 공개 메소드

Returns a list of filters to add to the existing list.
public getFilters ( ) : array
리턴 array An array of filters

getName() 공개 메소드

Returns the name of the extension.
public getName ( ) : string
리턴 string The extension name

sizeFilter() 공개 메소드

Returns the binary file size, $precision will determine the decimal number precision, and the Locale will alter the format of the result by choosing between coma or point pattern.
public sizeFilter ( integer $number, integer $precision ) : string
$number integer
$precision integer
리턴 string

프로퍼티 상세

$configResolver 보호되어 있는 프로퍼티

protected $configResolver

$localeConverter 보호되어 있는 프로퍼티

protected $localeConverter

$suffixes 보호되어 있는 프로퍼티

protected $suffixes

$translator 보호되어 있는 프로퍼티

protected $translator