PHP 클래스 AssetManager\View\Helper\Asset

상속: extends Zend\View\Helper\AbstractHelper
파일 보기 프로젝트 열기: rwoverdijk/assetmanager 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( AssetManager\Resolver\ResolverInterface $assetManagerResolver, Zend\Cache\Storage\Adapter\AbstractAdapter | null $cache, array $config )
__invoke ( string $filename ) : string Output the filepath with its unix modification time as query param

비공개 메소드들

메소드 설명
appendTimestamp ( string $filename, string $queryString, integer | null $timestamp = null ) : string Append timestamp as query param to the filename
elaborateFilePath ( string $filename, string $queryString ) : string find the file and if it exists, append its unix modification time to the filename
getFilePathFromCache ( string $filename, string $queryString ) : mixed | string Use the cache to get the filePath

메소드 상세

__construct() 공개 메소드

public __construct ( AssetManager\Resolver\ResolverInterface $assetManagerResolver, Zend\Cache\Storage\Adapter\AbstractAdapter | null $cache, array $config )
$assetManagerResolver AssetManager\Resolver\ResolverInterface
$cache Zend\Cache\Storage\Adapter\AbstractAdapter | null
$config array

__invoke() 공개 메소드

Output the filepath with its unix modification time as query param
public __invoke ( string $filename ) : string
$filename string
리턴 string