Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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' |
Результат | 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 |
Результат | Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult |
public countConverter ( ) : integer | ||
Результат | integer |