PHP Interface Sulu\Component\Content\Extension\ExtensionInterface

显示文件 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method 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 method

Returns content data for given values.
public getContentData ( mixed $container ) : mixed
$container mixed
return mixed

getFieldMapping() public method

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

getName() public method

Returns name of extension.
public getName ( ) : string
return string

load() public method

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

save() public method

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 method

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