PHP Interface Sulu\Component\Content\Extension\ExtensionInterface

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode Description
getContentData ( mixed $container ) : mixed Returns content data for given values.
getFieldMapping ( ) : array Returns field mapping for documents with this extension.
getName ( ) : string Returns name of extension.
load ( PHPCR\NodeInterface $node, string $webspaceKey, string $languageCode ) : mixed load data from node.
save ( PHPCR\NodeInterface $node, mixed $data, string $webspaceKey, string $languageCode ) save data to node.
setLanguageCode ( $languageCode, $languageNamespace, $namespace ) set current language code to translates properties.

Method Details

getContentData() public méthode

Returns content data for given values.
public getContentData ( mixed $container ) : mixed
$container mixed
Résultat mixed

getFieldMapping() public méthode

Returns field mapping for documents with this extension.
public getFieldMapping ( ) : array
Résultat array field mapping for indexed fields

getName() public méthode

Returns name of extension.
public getName ( ) : string
Résultat string

load() public méthode

load data from node.
public load ( PHPCR\NodeInterface $node, string $webspaceKey, string $languageCode ) : mixed
$node PHPCR\NodeInterface
$webspaceKey string
$languageCode string
Résultat mixed data of extension

save() public méthode

save data to node.
public save ( PHPCR\NodeInterface $node, mixed $data, string $webspaceKey, string $languageCode )
$node PHPCR\NodeInterface
$data mixed
$webspaceKey string
$languageCode string

setLanguageCode() public méthode

set current language code to translates properties.
public setLanguageCode ( $languageCode, $languageNamespace, $namespace )
$languageCode
$languageNamespace
$namespace