PHP Class lithium\console\command\g11n\Extract

Inheritance: extends lithium\console\Command
Afficher le fichier Open project: unionofrad/lithium Class Usage Examples

Méthodes publiques

Свойство Type Description
$destination
$scope
$source

Méthodes publiques

Méthode Description
run ( ) : void The main method of the command.

Méthodes protégées

Méthode Description
_configuration ( array $options = [] ) : string Helps in selecting or - if required - adding a new Catalog collection used for extracting or writing the template. A special configuration with the name temporary may be created. Should a configuration with that same name exist prior to entering this method it will be unset.
_extract ( ) : array Extracts translatable strings from multiple files.
_init ( )
_writeTemplate ( array $data ) : boolean | void Prompts for data source and writes template.

Method Details

_configuration() protected méthode

Helps in selecting or - if required - adding a new Catalog collection used for extracting or writing the template. A special configuration with the name temporary may be created. Should a configuration with that same name exist prior to entering this method it will be unset.
protected _configuration ( array $options = [] ) : string
$options array Options paired with defaults to prompt for.
Résultat string The name of the selected or newly created configuration.

_extract() protected méthode

Extracts translatable strings from multiple files.
protected _extract ( ) : array
Résultat array Returns the catalog specified. Returns boolean `false` when an error occurs.

_init() protected méthode

protected _init ( )

_writeTemplate() protected méthode

Prompts for data source and writes template.
protected _writeTemplate ( array $data ) : boolean | void
$data array Data to save.
Résultat boolean | void Return `false` if writing the catalog failed.

run() public méthode

The main method of the command.
public run ( ) : void
Résultat void

Property Details

$destination public_oe property

public $destination

$scope public_oe property

public $scope

$source public_oe property

public $source