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

저자: Victor Puertas ([email protected])
상속: implements Yosymfony\Spress\Core\DataWriter\DataWriterInterface
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$items

공개 메소드들

메소드 설명
__construct ( ) Constructor.
countItems ( ) : integer Number of items that have been written.
getItem ( string $path ) : Yosymfony\Spress\Core\DataSource\ItemInterface Gets the content that has been written.
getItems ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface[] Gets all items that has been written.
hasItem ( string $path ) : boolean Check if we have a item.
setUp ( )
tearDown ( )
write ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

countItems() 공개 메소드

This method is for internal use only and should never be called directly.
public countItems ( ) : integer
리턴 integer

getItem() 공개 메소드

This method is for internal use only and should never be called directly.
public getItem ( string $path ) : Yosymfony\Spress\Core\DataSource\ItemInterface
$path string Relative path of the content
리턴 Yosymfony\Spress\Core\DataSource\ItemInterface

getItems() 공개 메소드

Gets all items that has been written.
public getItems ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface[]
리턴 Yosymfony\Spress\Core\DataSource\ItemInterface[] The array's key is the path of the item

hasItem() 공개 메소드

This method is for internal use only and should never be called directly.
public hasItem ( string $path ) : boolean
$path string Relative path of the content
리턴 boolean

isWritable() 보호된 메소드

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

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

write() 공개 메소드

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

프로퍼티 상세

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

protected $items