PHP 클래스 Yosymfony\Spress\Core\Plugin\Event\ContentEvent

Used with events: - "spress.before_convert". - "spress.after_convert".
저자: Victor Puertas ([email protected])
상속: extends Symfony\Component\EventDispatcher\Event
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultSnapshotContent
$defaultSnapshotPath
$item

공개 메소드들

메소드 설명
__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).

메소드 상세

__construct() 공개 메소드

Constructor.
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

getAttributes() 공개 메소드

Gets the attributes of the item.
public getAttributes ( ) : array
리턴 array

getContent() 공개 메소드

Gets the content.
public getContent ( ) : string
리턴 string

getId() 공개 메소드

Gets the item identifier.
public getId ( ) : string
리턴 string

getItem() 공개 메소드

Gets the item.
public getItem ( ) : Yosymfony\Spress\Core\DataSource\ItemInterface
리턴 Yosymfony\Spress\Core\DataSource\ItemInterface

setAttributes() 공개 메소드

Sets the attributes of the item.
public setAttributes ( array $attributes )
$attributes array

setContent() 공개 메소드

Sets the content (without Front-matter).
public setContent ( string $content )
$content string

프로퍼티 상세

$defaultSnapshotContent 보호되어 있는 프로퍼티

protected $defaultSnapshotContent

$defaultSnapshotPath 보호되어 있는 프로퍼티

protected $defaultSnapshotPath

$item 보호되어 있는 프로퍼티

protected $item