PHP 클래스 Sulu\Component\Content\SimpleContentType

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

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultValue mixed default value if node does not have the property.

공개 메소드들

메소드 설명
__construct ( $name, $defaultValue = null )
__get ( $property ) magic getter for twig templates.
exportData ( $propertyValue )
getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null )
getDefaultValue ( )
getName ( ) : string Returns the name of the content type.
getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property )
getType ( )
getViewData ( Sulu\Component\Content\Compat\PropertyInterface $property )
hasValue ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
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 )

보호된 메소드들

메소드 설명
decodeValue ( mixed $value ) : mixed Decodes value from database.
encodeValue ( mixed $value ) : mixed Prepares value for database.
removeIllegalCharacters ( string $content ) : string Remove illegal characters from content string, else PHPCR would throw an PHPCR\ValueFormatException if an illegal characters is detected.

메소드 상세

__construct() 공개 메소드

public __construct ( $name, $defaultValue = null )

__get() 공개 메소드

magic getter for twig templates.
public __get ( $property )
$property string name of property

decodeValue() 보호된 메소드

Decodes value from database.
protected decodeValue ( mixed $value ) : mixed
$value mixed
리턴 mixed

encodeValue() 보호된 메소드

Prepares value for database.
protected encodeValue ( mixed $value ) : mixed
$value mixed
리턴 mixed

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

getDefaultValue() 공개 메소드

public getDefaultValue ( )

getName() 공개 메소드

Returns the name of the content type.
public getName ( ) : string
리턴 string

getReferencedUuids() 공개 메소드

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

getType() 공개 메소드

public getType ( )

getViewData() 공개 메소드

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

hasValue() 공개 메소드

public hasValue ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$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

removeIllegalCharacters() 보호된 메소드

Remove illegal characters from content string, else PHPCR would throw an PHPCR\ValueFormatException if an illegal characters is detected.
protected removeIllegalCharacters ( string $content ) : string
$content string
리턴 string

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

프로퍼티 상세

$defaultValue 보호되어 있는 프로퍼티

default value if node does not have the property.
protected mixed $defaultValue
리턴 mixed