PHP 클래스 Yosymfony\Spress\Core\DataWriter\FilesystemDataWriter

This data writer uses SNAPSHOT_PATH_PERMALINK for working with the path of the items. In case of binary item this data writer uses SNAPSHOT_PATH_SOURCE and SNAPSHOT_PATH_RELATIVE_AFTER_CONVERT.
저자: Victor Puertas ([email protected])
상속: implements Yosymfony\Spress\Core\DataWriter\DataWriterInterface
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$filesystem
$outputDir

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Filesystem\Filesystem $filesystem, string $outputDir ) Constructor.
setUp ( )
tearDown ( )
write ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )

보호된 메소드들

메소드 설명
composeOutputPath ( $relativePath )
isWritable ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\Filesystem\Filesystem $filesystem, string $outputDir )
$filesystem Symfony\Component\Filesystem\Filesystem
$outputDir string The output folder. e.g: "build"

composeOutputPath() 보호된 메소드

protected composeOutputPath ( $relativePath )

isWritable() 보호된 메소드

protected isWritable ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

setUp() 공개 메소드

Removes the whole content of the output dir but VCS files.
public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

write() 공개 메소드

public write ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

프로퍼티 상세

$filesystem 보호되어 있는 프로퍼티

protected $filesystem

$outputDir 보호되어 있는 프로퍼티

protected $outputDir