PHP 클래스 Sulu\Bundle\SnippetBundle\Content\SnippetContent

상속: extends Sulu\Component\Content\ComplexContentType, implements Sulu\Component\Content\ContentTypeExportInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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