PHP Class Yosymfony\Spress\Core\ContentManager\Converter\MichelfMarkdownConverter

Author: Victor Pueras ([email protected])
Inheritance: implements Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface
Afficher le fichier Open project: spress/spress

Méthodes publiques

Méthode Description
__construct ( array $supportedExtension ) Constructor.
convert ( string $input ) : string Convert the input data.
getOutExtension ( $extension ) : string The extension of filename result (without dot). E.g: html.
getPriority ( ) : integer Get the converter priority.
matches ( string $extension ) : boolean If file's extension is support by converter.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $supportedExtension )
$supportedExtension array File extesion supported by the converter. Extension without dot

convert() public méthode

Convert the input data.
public convert ( string $input ) : string
$input string The raw content without Front-matter
Résultat string

getOutExtension() public méthode

The extension of filename result (without dot). E.g: html.
public getOutExtension ( $extension ) : string
Résultat string

getPriority() public méthode

Get the converter priority.
public getPriority ( ) : integer
Résultat integer

matches() public méthode

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