PHP Class lithium\console\command\g11n\Extract

Inheritance: extends lithium\console\Command
Datei anzeigen Open project: unionofrad/lithium Class Usage Examples

Public Properties

Property Type Description
$destination
$scope
$source

Public Methods

Method Description
run ( ) : void The main method of the command.

Protected Methods

Method 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 method

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.
return string The name of the selected or newly created configuration.

_extract() protected method

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

_init() protected method

protected _init ( )

_writeTemplate() protected method

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

run() public method

The main method of the command.
public run ( ) : void
return void

Property Details

$destination public_oe property

public $destination

$scope public_oe property

public $scope

$source public_oe property

public $source