Property | Type | Description | |
---|---|---|---|
$defaultSnapshotContent | |||
$defaultSnapshotPath | |||
$item |
Method | Description | |
---|---|---|
__construct ( Yosymfony\Spress\Core\DataSource\ItemInterface $item, string $defaultSnapshotContent, string $defaultSnapshotPath ) | Constructor. | |
getAttributes ( ) : array | Gets the attributes of the item. | |
getContent ( ) : string | Gets the content. | |
getId ( ) : string | Gets the item identifier. | |
getItem ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface | Gets the item. | |
setAttributes ( array $attributes ) | Sets the attributes of the item. | |
setContent ( string $content ) | Sets the content (without Front-matter). |
public __construct ( Yosymfony\Spress\Core\DataSource\ItemInterface $item, string $defaultSnapshotContent, string $defaultSnapshotPath ) | ||
$item | Yosymfony\Spress\Core\DataSource\ItemInterface | |
$defaultSnapshotContent | string | The name of the defatul snapshot for content |
$defaultSnapshotPath | string | The name of the defatul snapshot for path |
public getAttributes ( ) : array | ||
return | array |
public getItem ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface | ||
return | Yosymfony\Spress\Core\DataSource\ItemInterface |
public setAttributes ( array $attributes ) | ||
$attributes | array |
public setContent ( string $content ) | ||
$content | string |