PHP 클래스 Flarum\Asset\RevisionCompiler

상속: implements Flarum\Asset\CompilerInterface
파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$files string[]
$strings callable[]
$watch boolean

공개 메소드들

메소드 설명
__construct ( string $path, string $filename, boolean $watch = false )
addFile ( $file )
addString ( callable $callback )
compile ( )
flush ( )
getFile ( )
setFilename ( $filename )

보호된 메소드들

메소드 설명
format ( string $string ) : string
formatFile ( string $file ) : string
getCacheDifferentiator ( ) : mixed
getRevision ( ) : string | null
getRevisionFile ( ) : string
putRevision ( string $revision ) : integer

메소드 상세

__construct() 공개 메소드

public __construct ( string $path, string $filename, boolean $watch = false )
$path string
$filename string
$watch boolean

addFile() 공개 메소드

public addFile ( $file )

addString() 공개 메소드

public addString ( callable $callback )
$callback callable

compile() 공개 메소드

public compile ( )

flush() 공개 메소드

public flush ( )

format() 보호된 메소드

protected format ( string $string ) : string
$string string
리턴 string

formatFile() 보호된 메소드

protected formatFile ( string $file ) : string
$file string
리턴 string

getCacheDifferentiator() 보호된 메소드

protected getCacheDifferentiator ( ) : mixed
리턴 mixed

getFile() 공개 메소드

public getFile ( )

getRevision() 보호된 메소드

protected getRevision ( ) : string | null
리턴 string | null

getRevisionFile() 보호된 메소드

protected getRevisionFile ( ) : string
리턴 string

putRevision() 보호된 메소드

protected putRevision ( string $revision ) : integer
$revision string
리턴 integer

setFilename() 공개 메소드

public setFilename ( $filename )

프로퍼티 상세

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

protected string[] $files
리턴 string[]

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

protected callable[] $strings
리턴 callable[]

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

protected bool $watch
리턴 boolean