PHP Class App\Console\Commands\TranslationImport

## 명령어 사용 php artisan trans:import {pluginName}
Author: XE Developers ([email protected])
Inheritance: extends Illuminate\Console\Command
Show file Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$description string
$name string
$translator Xpressengine\Translation\Translator

Public Methods

Method Description
__construct ( Translator $translator ) Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getLangsDir ( string | null $name = null ) : string Get the directory path where the language file
getNamespace ( string | null $name = null ) : string Get the namespace for the package
getOptions ( ) : array Get the console command options.

Method Details

__construct() public method

Create a new command instance.
public __construct ( Translator $translator )
$translator Xpressengine\Translation\Translator translator

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getLangsDir() protected method

Get the directory path where the language file
protected getLangsDir ( string | null $name = null ) : string
$name string | null
return string

getNamespace() protected method

Get the namespace for the package
protected getNamespace ( string | null $name = null ) : string
$name string | null
return string

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

Property Details

$description protected property

protected string $description
return string

$name protected property

protected string $name
return string

$translator protected property

protected Translator,Xpressengine\Translation $translator
return Xpressengine\Translation\Translator