PHP 인터페이스 Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface

Converters extend Spress to support new type of content.
저자: Victor Puertas ([email protected])
파일 보기 프로젝트 열기: spress/spress 0 사용 예제들

공개 메소드들

메소드 설명
convert ( string $input ) : string Convert the input data.
getOutExtension ( string $extension ) : string The extension of filename result (without dot). E.g: html.
getPriority ( ) : integer Get the priority of converter.
matches ( string $extension ) : boolean If file's extension is support by converter.

메소드 상세

convert() 공개 메소드

Convert the input data.
public convert ( string $input ) : string
$input string The raw content without Front-matter
리턴 string

getOutExtension() 공개 메소드

The extension of filename result (without dot). E.g: html.
public getOutExtension ( string $extension ) : string
$extension string File's extension
리턴 string

getPriority() 공개 메소드

Get the priority of converter.
public getPriority ( ) : integer
리턴 integer Value between 0 to 10. Greater means higher priority

matches() 공개 메소드

If file's extension is support by converter.
public matches ( string $extension ) : boolean
$extension string Extension without dot
리턴 boolean