PHP 인터페이스 Sulu\Component\Content\Document\Structure\StructureInterface

상속: extends ArrayAccess
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
bind ( array $data, boolean $clearMissing = false ) Bind data to the container.
commitStagedData ( boolean $clearMissingContent ) Commit the staged content data.
getContentViewProperty ( string $name ) : PropertyValue Return the named property as rendered by the content type ->getContentData() method.
getProperty ( string $name ) : PropertyValue Return the named property.
getStagedData ( ) : array Get staged data, see documentation for commitStagedData.
hasProperty ( string $name ) Return true if the container has the named property.
setStagedData ( array $stagedData ) Set staged data, see documentation for commitStagedData.
toArray ( ) : array Return an array representation of the containers property values.

메소드 상세

bind() 공개 메소드

If $clearMissing is true then any missing fields will be set to NULL.
public bind ( array $data, boolean $clearMissing = false )
$data array
$clearMissing boolean

commitStagedData() 공개 메소드

This is necessary because: - We cannot set the content data on a property-by-property basis - Therefore the form framework needs to get/set to a specific property - It uses the stagedData property for this purpose - We then "commit" the staged data after the form has been submitted. We should refactor the content types so that they are not involved in the process of mapping to PHPCR. If $clearMissingContent is true, then fields will be set to NULL
public commitStagedData ( boolean $clearMissingContent )
$clearMissingContent boolean

getContentViewProperty() 공개 메소드

Return the named property as rendered by the content type ->getContentData() method.
public getContentViewProperty ( string $name ) : PropertyValue
$name string
리턴 PropertyValue

getProperty() 공개 메소드

Return the named property.
public getProperty ( string $name ) : PropertyValue
$name string
리턴 PropertyValue

getStagedData() 공개 메소드

Get staged data, see documentation for commitStagedData.
public getStagedData ( ) : array
리턴 array

hasProperty() 공개 메소드

Return true if the container has the named property.
public hasProperty ( string $name )
$name string

setStagedData() 공개 메소드

Set staged data, see documentation for commitStagedData.
public setStagedData ( array $stagedData )
$stagedData array

toArray() 공개 메소드

Return an array representation of the containers property values.
public toArray ( ) : array
리턴 array