PHP 클래스 Yosymfony\Spress\Core\ContentManager\Converter\ConverterManager

저자: Victor Puertas ([email protected])
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $textExtensions = [] )
$textExtensions array

addConverter() 공개 메소드

Adds a converter.
public addConverter ( Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface $converter )
$converter Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface The converter

clearConverter() 공개 메소드

Clears all converters registered.
public clearConverter ( )

convertContent() 공개 메소드

Converts the content.
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

convertItem() 공개 메소드

Converts an item. This method uses the SNAPSHOT_PATH_RELATIVE of Item path.
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

countConverter() 공개 메소드

Counts the converters registered.
public countConverter ( ) : integer
리턴 integer