PHP Class Yosymfony\Spress\Core\DataWriter\MemoryDataWriter

Author: Victor Puertas ([email protected])
Inheritance: implements Yosymfony\Spress\Core\DataWriter\DataWriterInterface
Mostra file Open project: spress/spress Class Usage Examples

Protected Properties

Property Type Description
$items

Public Methods

Method Description
__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 )

Protected Methods

Method Description
isWritable ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )

Method Details

__construct() public method

Constructor.
public __construct ( )

countItems() public method

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

getItem() public method

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
return Yosymfony\Spress\Core\DataSource\ItemInterface

getItems() public method

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

hasItem() public method

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
return boolean

isWritable() protected method

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

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

write() public method

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

Property Details

$items protected_oe property

protected $items