PHP Интерфейс Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface

Converters extend Spress to support new type of content.
Автор: Victor Puertas ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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