PHP Class Sulu\Bundle\TranslateBundle\Command\ExportCommand

Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Show file Open project: sulu/sulu

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Loads translation messages as defined by the parameters from the bundles and writes them to a file, which also can be configured via the parameters.

Private Methods

Method Description
exportForLocale ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $locale ) Executes the command for a given locale.
getFormatFromInput ( $input ) : integer Converts the users input to the integer description of the format the export class expects.

Method Details

configure() protected method

protected configure ( )

execute() protected method

If a locale got specified, only the translation corresponding to that locale get exported. Otherwise the translation files get exported for all locales defined in the system.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface The input of the command
$output Symfony\Component\Console\Output\OutputInterface The output of the command
return integer 0 iff everything went fine