PHP Class Sulu\Bundle\SnippetBundle\Content\SnippetContent

Inheritance: extends Sulu\Component\Content\ComplexContentType, implements Sulu\Component\Content\ContentTypeExportInterface
Datei anzeigen Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$defaultEnabled boolean
$template string

Public Methods

Method Description
__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 )

Private Methods

Method Description
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.

Method Details

__construct() public method

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 method

public exportData ( $propertyValue )

getContentData() public method

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

getDefaultParams() public method

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

getReferencedUuids() public method

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

getTemplate() public method

public getTemplate ( )

getType() public method

public getType ( )

getViewData() public method

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

importData() public method

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 method

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 method

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 method

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

Property Details

$defaultEnabled protected_oe property

protected bool $defaultEnabled
return boolean

$template protected_oe property

protected string $template
return string