PHP Class Yosymfony\Spress\Core\DataSource\Memory\MemoryDataSource

Author: Victor Puertas ([email protected])
Inheritance: extends Yosymfony\Spress\Core\DataSource\AbstractDataSource
Show file Open project: spress/spress Class Usage Examples

Public Methods

Method Description
addInclude ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) Adds a new include item.
addItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) Adds a new item.
addLayout ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) Adds a new layout item.
clearInclude ( ) Clears all includes registered.
clearItem ( ) Clears all items registered.
clearLayout ( ) Clears all layouts registered.
countInclude ( ) : integer Counts the include items registered.
countItem ( ) : integer Counts the items registered.
countLayout ( ) : integer Counts the layout items registered.
getIncludes ( )
getItems ( )
getLayouts ( )
hasInclude ( string $id ) : boolean Checks if an include item exists.
hasItem ( string $id ) : boolean Checks if an item exists.
hasLayout ( string $id ) : boolean Checks if a layout item exists.
removeInclude ( string $id ) Removes a include item.
removeItem ( string $id ) Removes an item.
removeLayout ( string $id ) Removes a layout item.
setInclude ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) Sets an include item.
setItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) Sets an item.
setLayout ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) Sets a layout item.

Method Details

addInclude() public method

Adds a new include item.
public addInclude ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

addItem() public method

Adds a new item.
public addItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

addLayout() public method

Adds a new layout item.
public addLayout ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

clearInclude() public method

Clears all includes registered.
public clearInclude ( )

clearItem() public method

Clears all items registered.
public clearItem ( )

clearLayout() public method

Clears all layouts registered.
public clearLayout ( )

countInclude() public method

Counts the include items registered.
public countInclude ( ) : integer
return integer

countItem() public method

Counts the items registered.
public countItem ( ) : integer
return integer

countLayout() public method

Counts the layout items registered.
public countLayout ( ) : integer
return integer

getIncludes() public method

public getIncludes ( )

getItems() public method

public getItems ( )

getLayouts() public method

public getLayouts ( )

hasInclude() public method

Checks if an include item exists.
public hasInclude ( string $id ) : boolean
$id string The item's identifier
return boolean

hasItem() public method

Checks if an item exists.
public hasItem ( string $id ) : boolean
$id string The item's identifier
return boolean

hasLayout() public method

Checks if a layout item exists.
public hasLayout ( string $id ) : boolean
$id string The item's identifier
return boolean

removeInclude() public method

Removes a include item.
public removeInclude ( string $id )
$id string The item's identifier

removeItem() public method

Removes an item.
public removeItem ( string $id )
$id string The item's identifier

removeLayout() public method

Removes a layout item.
public removeLayout ( string $id )
$id string The item's identifier

setInclude() public method

Sets an include item.
public setInclude ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

setItem() public method

Sets an item.
public setItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface

setLayout() public method

Sets a layout item.
public setLayout ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
$item Yosymfony\Spress\Core\DataSource\ItemInterface