PHP Класс Sulu\Bundle\SnippetBundle\Content\SnippetContent

Наследование: extends Sulu\Component\Content\ComplexContentType, implements Sulu\Component\Content\ContentTypeExportInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$defaultEnabled boolean
$template string

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

Метод Описание
__construct ( Sulu\Bundle\SnippetBundle\Snippet\DefaultSnippetManagerInterface $defaultSnippetManager, Sulu\Bundle\SnippetBundle\Snippet\SnippetResolverInterface $snippetResolver, $defaultEnabled, $template )
exportData ( $propertyValue )
getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property )
getTemplate ( )
getType ( )
getViewData ( Sulu\Component\Content\Compat\PropertyInterface $property )
importData ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null )
read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
remove ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
write ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $userId, $webspaceKey, $languageCode, $segmentKey )

Приватные методы

Метод Описание
getParameterValue ( array $parameter, string $name, mixed $default = null ) : mixed Returns value of parameter.
getSnippets ( Sulu\Component\Content\Compat\PropertyInterface $property ) Returns snippets with given property value.
getUuids ( $data ) The data is not always normalized, so we normalize the data here.

Описание методов

__construct() публичный Метод

public __construct ( Sulu\Bundle\SnippetBundle\Snippet\DefaultSnippetManagerInterface $defaultSnippetManager, Sulu\Bundle\SnippetBundle\Snippet\SnippetResolverInterface $snippetResolver, $defaultEnabled, $template )
$defaultSnippetManager Sulu\Bundle\SnippetBundle\Snippet\DefaultSnippetManagerInterface
$snippetResolver Sulu\Bundle\SnippetBundle\Snippet\SnippetResolverInterface

exportData() публичный Метод

public exportData ( $propertyValue )

getContentData() публичный Метод

public getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface

getDefaultParams() публичный Метод

public getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
$property Sulu\Component\Content\Compat\PropertyInterface

getReferencedUuids() публичный Метод

public getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface

getTemplate() публичный Метод

public getTemplate ( )

getType() публичный Метод

public getType ( )

getViewData() публичный Метод

public getViewData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface

importData() публичный Метод

public importData ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $value, $userId, $webspaceKey, $languageCode, $segmentKey = null )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

read() публичный Метод

public read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

remove() публичный Метод

public remove ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

write() публичный Метод

public write ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $userId, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface

Описание свойств

$defaultEnabled защищенное свойство

protected bool $defaultEnabled
Результат boolean

$template защищенное свойство

protected string $template
Результат string