PHP Class Yosymfony\Spress\Core\DataSource\Item

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

Public Methods

Method Description
__construct ( string $content, string $id, array $attributes = [], boolean $isBinary = false, $type = self::TYPE_ITEM ) Constructor.
getAttributes ( )
getCollection ( )
getContent ( $snapshotName = '' )
getId ( )
getPath ( $snapshotName = '' )
getRelationshipCollection ( )
getType ( )
isBinary ( )
setAttributes ( array $values )
setCollection ( $name )
setContent ( $content, $snapshotName )
setPath ( $value, $snapshotName )

Protected Methods

Method Description
setId ( string $id ) Sets id.

Method Details

__construct() public method

Constructor.
public __construct ( string $content, string $id, array $attributes = [], boolean $isBinary = false, $type = self::TYPE_ITEM )
$content string
$id string
$attributes array
$isBinary boolean

getAttributes() public method

public getAttributes ( )

getCollection() public method

public getCollection ( )

getContent() public method

public getContent ( $snapshotName = '' )

getId() public method

public getId ( )

getPath() public method

public getPath ( $snapshotName = '' )

getRelationshipCollection() public method

getType() public method

public getType ( )

isBinary() public method

public isBinary ( )

setAttributes() public method

public setAttributes ( array $values )
$values array

setCollection() public method

public setCollection ( $name )

setContent() public method

public setContent ( $content, $snapshotName )

setId() protected method

Sets id.
protected setId ( string $id )
$id string The item identifier

setPath() public method

public setPath ( $value, $snapshotName )