Yosymfony\Spress\Core\DataWriter\MemoryDataWriter::getItems PHP Method

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
    public function getItems()
    {
        return $this->items;
    }

Usage Example

Esempio n. 1
0
 public function testReParseSite()
 {
     $dw = new MemoryDataWriter();
     $spress = new Spress();
     $spress['spress.config.site_dir'] = __DIR__ . '/fixtures/project';
     $spress['spress.dataWriter'] = $dw;
     $spress->parse();
     $this->assertCount(17, $dw->getItems());
     $spress->parse();
     $this->assertCount(17, $dw->getItems());
 }
All Usage Examples Of Yosymfony\Spress\Core\DataWriter\MemoryDataWriter::getItems