PHP Class Sulu\Component\Content\Mapper\Translation\MultipleTranslatedProperties

ファイルを表示 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( $names, $languageNamespace, $namespace = '' )
getName ( string $key ) : string returns translated property name.
setLanguage ( string $languageKey ) set language of translated property names.
setStructureType ( string $structureType ) Set the structure type.

Method Details

__construct() public method

public __construct ( $names, $languageNamespace, $namespace = '' )

getName() public method

returns translated property name.
public getName ( string $key ) : string
$key string
return string

setLanguage() public method

set language of translated property names.
public setLanguage ( string $languageKey )
$languageKey string

setStructureType() public method

Set the structure type.
public setStructureType ( string $structureType )
$structureType string