PHP Класс Fenos\Notifynder\Translator\Compiler

Cache compiler for translations I got part of the code from the view compiler of laravel :)
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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