PHP 인터페이스 eZ\Publish\Core\Base\Translatable

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
addParameter ( string $name, string $value ) Adds a parameter to existing hash map.
addParameters ( array $parameters ) Adds $parameters to existing hash map.
getBaseTranslation ( ) : string Returns base translation, computed with message template and parameters.
getMessageTemplate ( ) : string Returns the message template, with placeholders for parameters.
getParameters ( ) : array Returns a hash map with param placeholder as key and its corresponding value.
setMessageTemplate ( string $messageTemplate ) Injects the message template.
setParameters ( array $parameters ) Injects the hash map, with param placeholder as key and its corresponding value.

메소드 상세

addParameter() 공개 메소드

Adds a parameter to existing hash map.
public addParameter ( string $name, string $value )
$name string
$value string

addParameters() 공개 메소드

Adds $parameters to existing hash map.
public addParameters ( array $parameters )
$parameters array

getBaseTranslation() 공개 메소드

Returns base translation, computed with message template and parameters.
public getBaseTranslation ( ) : string
리턴 string

getMessageTemplate() 공개 메소드

E.g. "Content with ID %contentId% could not be found".
public getMessageTemplate ( ) : string
리턴 string

getParameters() 공개 메소드

E.g. array('%contentId%' => 123).
public getParameters ( ) : array
리턴 array

setMessageTemplate() 공개 메소드

Injects the message template.
public setMessageTemplate ( string $messageTemplate )
$messageTemplate string

setParameters() 공개 메소드

E.g. array('%contentId%' => 123). If parameters already existed, they will be replaced by the passed here.
public setParameters ( array $parameters )
$parameters array