메소드 | 설명 | |
---|---|---|
__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 |