PHP 클래스 Fenos\Notifynder\Translator\Compiler

Cache compiler for translations I got part of the code from the view compiler of laravel :)
파일 보기 프로젝트 열기: fenos/notifynder 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$files Illuminate\Filesystem\Filesystem The Filesystem instance.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Filesystem\Filesystem $files ) Create a new compiler instance.
cacheFile ( array $contents ) : boolean | integer Cache the file in json format.
getCompiledPath ( string $filename ) : string Get the path to the compiled version of a view.
getFilePath ( ) : string Get cached file.
isExpired ( ) : boolean Determine if the view at the given path is expired.

보호된 메소드들

메소드 설명
cachePath ( ) : string Get cache path.

메소드 상세

__construct() 공개 메소드

Create a new compiler instance.
public __construct ( Illuminate\Contracts\Filesystem\Filesystem $files )
$files Illuminate\Contracts\Filesystem\Filesystem

cacheFile() 공개 메소드

Cache the file in json format.
public cacheFile ( array $contents ) : boolean | integer
$contents array
리턴 boolean | integer

cachePath() 보호된 메소드

Get cache path.
protected cachePath ( ) : string
리턴 string

getCompiledPath() 공개 메소드

Get the path to the compiled version of a view.
public getCompiledPath ( string $filename ) : string
$filename string
리턴 string

getFilePath() 공개 메소드

Get cached file.
public getFilePath ( ) : string
리턴 string

isExpired() 공개 메소드

Determine if the view at the given path is expired.
public isExpired ( ) : boolean
리턴 boolean

프로퍼티 상세

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

The Filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
리턴 Illuminate\Filesystem\Filesystem