PHP Интерфейс Sulu\Component\Content\Document\Structure\StructureInterface

Наследование: extends ArrayAccess
Показать файл Открыть проект

Открытые методы

Метод Описание
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