Method | Description | |
---|---|---|
__construct ( array $textExtensions = [] ) | Constructor. | |
addConverter ( Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface $converter ) | Adds a converter. | |
clearConverter ( ) | Clears all converters registered. | |
convertContent ( string $content, string $inputExtension ) : Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult | Converts the content. | |
convertItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) : Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult | Converts an item. This method uses the SNAPSHOT_PATH_RELATIVE of Item path. | |
countConverter ( ) : integer | Counts the converters registered. |
Method | Description | |
---|---|---|
getConverter ( $extension ) | ||
initializeQueue ( ) |
public __construct ( array $textExtensions = [] ) | ||
$textExtensions | array |
public addConverter ( Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface $converter ) | ||
$converter | Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface | The converter |
public convertContent ( string $content, string $inputExtension ) : Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult | ||
$content | string | The content |
$inputExtension | string | The filename extension. e.g: 'html' |
return | Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult |
public convertItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) : Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult | ||
$item | Yosymfony\Spress\Core\DataSource\ItemInterface | The item |
return | Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult |
public countConverter ( ) : integer | ||
return | integer |