PHP Class Yosymfony\Spress\Core\DataSource\Item

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

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
setId ( string $id ) Sets id.

Method Details

__construct() public méthode

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 méthode

public getAttributes ( )

getCollection() public méthode

public getCollection ( )

getContent() public méthode

public getContent ( $snapshotName = '' )

getId() public méthode

public getId ( )

getPath() public méthode

public getPath ( $snapshotName = '' )

getRelationshipCollection() public méthode

getType() public méthode

public getType ( )

isBinary() public méthode

public isBinary ( )

setAttributes() public méthode

public setAttributes ( array $values )
$values array

setCollection() public méthode

public setCollection ( $name )

setContent() public méthode

public setContent ( $content, $snapshotName )

setId() protected méthode

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

setPath() public méthode

public setPath ( $value, $snapshotName )