PHP Класс lithium\console\command\g11n\Extract

Наследование: extends lithium\console\Command
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$destination
$scope
$source

Открытые методы

Метод Описание
run ( ) : void The main method of the command.

Защищенные методы

Метод Описание
_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.

Описание методов

_configuration() защищенный Метод

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.
Результат string The name of the selected or newly created configuration.

_extract() защищенный Метод

Extracts translatable strings from multiple files.
protected _extract ( ) : array
Результат array Returns the catalog specified. Returns boolean `false` when an error occurs.

_init() защищенный Метод

protected _init ( )

_writeTemplate() защищенный Метод

Prompts for data source and writes template.
protected _writeTemplate ( array $data ) : boolean | void
$data array Data to save.
Результат boolean | void Return `false` if writing the catalog failed.

run() публичный Метод

The main method of the command.
public run ( ) : void
Результат void

Описание свойств

$destination публичное свойство

public $destination

$scope публичное свойство

public $scope

$source публичное свойство

public $source