PHP 클래스 FluidTYPO3\Vhs\ViewHelpers\Resource\LanguageViewHelper

Reads a certain language file with returning not just one single label, but all the translated labels. ### Examples
상속: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper, use trait FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait
파일 보기 프로젝트 열기: fluidtypo3/vhs

공개 메소드들

메소드 설명
initializeArguments ( ) : void Registers all arguments for this ViewHelper.
render ( ) : array | string The main render method of this ViewHelper.

보호된 메소드들

메소드 설명
getInitializedLanguage ( ) : string Gets the key of current initialized language or fallback to 'default'.
getLabelsByLanguageKey ( array $locallang, string $languageKey ) : array Gets the translated labels by a specific language key or fallback to 'default'.
getLabelsFromTarget ( array $labels ) : array Simplify label array with just taking the value from target.
getLanguageKey ( ) : string Gets the language key from arguments or from current initialized language if argument is not defined.
getResolvedExtensionName ( ) : string Gets the extension name from defined argument or tries to resolve it from the controller context if not set.
getResolvedPath ( ) : string Gets the resolved file path with trying to resolve relative paths even if no extension key is defined.

메소드 상세

getInitializedLanguage() 보호된 메소드

Gets the key of current initialized language or fallback to 'default'.
protected getInitializedLanguage ( ) : string
리턴 string

getLabelsByLanguageKey() 보호된 메소드

Gets the translated labels by a specific language key or fallback to 'default'.
protected getLabelsByLanguageKey ( array $locallang, string $languageKey ) : array
$locallang array
$languageKey string
리턴 array

getLabelsFromTarget() 보호된 메소드

Simplify label array with just taking the value from target.
protected getLabelsFromTarget ( array $labels ) : array
$labels array
리턴 array

getLanguageKey() 보호된 메소드

Gets the language key from arguments or from current initialized language if argument is not defined.
protected getLanguageKey ( ) : string
리턴 string

getResolvedExtensionName() 보호된 메소드

Gets the extension name from defined argument or tries to resolve it from the controller context if not set.
protected getResolvedExtensionName ( ) : string
리턴 string

getResolvedPath() 보호된 메소드

Gets the resolved file path with trying to resolve relative paths even if no extension key is defined.
protected getResolvedPath ( ) : string
리턴 string

initializeArguments() 공개 메소드

Registers all arguments for this ViewHelper.
public initializeArguments ( ) : void
리턴 void

render() 공개 메소드

The main render method of this ViewHelper.
public render ( ) : array | string
리턴 array | string