PHP 클래스 Sulu\Bundle\TranslateBundle\Translate\Export

파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Translator $translator, Symfony\Component\Console\Output\OutputInterface $output )
execute ( ) Executes the export by loading the catalogue and writing messages from the defined domains to the defined file.
getBackend ( ) : boolean Returns whether the backend translations should be included in the export or not.
getFilename ( ) : string Returns the name of the file to export.
getFormat ( ) : string Returns the format, in which the catalogue should be exported.
getFrontend ( ) : boolean Returns whether the frontend translations should be included in the export or not.
getLocale ( ) : string Returns the locale of the package, which should be exported.
getPath ( ) : string Returns the path to the directory, in which the export should be located.
setBackend ( boolean $backend ) Sets whether the backend translations should be included in the export or not.
setFilename ( string $filename ) Sets the filename.
setFormat ( string $format ) Set the format, in which the catalogue should be exported.
setFrontend ( boolean $frontend ) Sets whether the frontend translations should be included in the export or not.
setLocale ( string $locale ) Sets the locale of the package, which should be exported.
setPath ( string $path ) Sets the path to the directory, in which the export should be located.

비공개 메소드들

메소드 설명
getMessagesForDomain ( Symfony\Component\Translation\MessageCatalogueInterface $catalogue, $domain ) : array Gets the messages of a given catalogue and a given domain.
newFileDumper ( ) : Symfony\Component\Translation\Dumper\FileDumper Constructs a new file dumper depending on the defined format.
writeMessagesFile ( $messages ) Writes an array of translation messages to the defined file.

메소드 상세

__construct() 공개 메소드

public __construct ( Translator $translator, Symfony\Component\Console\Output\OutputInterface $output )
$translator Symfony\Component\Translation\Translator
$output Symfony\Component\Console\Output\OutputInterface

execute() 공개 메소드

Executes the export by loading the catalogue and writing messages from the defined domains to the defined file.
public execute ( )

getBackend() 공개 메소드

Returns whether the backend translations should be included in the export or not.
public getBackend ( ) : boolean
리턴 boolean

getFilename() 공개 메소드

Returns the name of the file to export.
public getFilename ( ) : string
리턴 string

getFormat() 공개 메소드

Returns the format, in which the catalogue should be exported.
public getFormat ( ) : string
리턴 string

getFrontend() 공개 메소드

Returns whether the frontend translations should be included in the export or not.
public getFrontend ( ) : boolean
리턴 boolean

getLocale() 공개 메소드

Returns the locale of the package, which should be exported.
public getLocale ( ) : string
리턴 string

getPath() 공개 메소드

If the path is not explicitly set, the current working directory will be returned.
public getPath ( ) : string
리턴 string

setBackend() 공개 메소드

Sets whether the backend translations should be included in the export or not.
public setBackend ( boolean $backend )
$backend boolean

setFilename() 공개 메소드

Sets the filename.
public setFilename ( string $filename )
$filename string

setFormat() 공개 메소드

Set the format, in which the catalogue should be exported.
public setFormat ( string $format )
$format string

setFrontend() 공개 메소드

Sets whether the frontend translations should be included in the export or not.
public setFrontend ( boolean $frontend )
$frontend boolean

setLocale() 공개 메소드

Sets the locale of the package, which should be exported.
public setLocale ( string $locale )
$locale string

setPath() 공개 메소드

Sets the path to the directory, in which the export should be located.
public setPath ( string $path )
$path string