프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
public __get ( $property ) | ||
$property | string name of property |
protected decodeValue ( mixed $value ) : mixed | ||
$value | mixed | |
리턴 | mixed |
protected encodeValue ( mixed $value ) : mixed | ||
$value | mixed | |
리턴 | mixed |
public getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property ) | ||
$property | Sulu\Component\Content\Compat\PropertyInterface |
public getDefaultParams ( Sulu\Component\Content\Compat\PropertyInterface $property = null ) | ||
$property | Sulu\Component\Content\Compat\PropertyInterface |
public getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property ) | ||
$property | Sulu\Component\Content\Compat\PropertyInterface |
public getViewData ( Sulu\Component\Content\Compat\PropertyInterface $property ) | ||
$property | Sulu\Component\Content\Compat\PropertyInterface |
public hasValue ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey ) | ||
$node | PHPCR\NodeInterface | |
$property | Sulu\Component\Content\Compat\PropertyInterface |
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 |
public read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey ) | ||
$node | PHPCR\NodeInterface | |
$property | Sulu\Component\Content\Compat\PropertyInterface |
public remove ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey ) | ||
$node | PHPCR\NodeInterface | |
$property | Sulu\Component\Content\Compat\PropertyInterface |
protected removeIllegalCharacters ( string $content ) : string | ||
$content | string | |
리턴 | string |
public write ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $userId, $webspaceKey, $languageCode, $segmentKey ) | ||
$node | PHPCR\NodeInterface | |
$property | Sulu\Component\Content\Compat\PropertyInterface |
protected mixed $defaultValue | ||
리턴 | mixed |