Свойство | Тип | Описание | |
---|---|---|---|
$_messages | array | The array of all messages used by the crud component | |
$_path | string | The path to write the output file to | |
$_strings | array | The array of raw stings to be written to the output file |
Метод | Описание | |
---|---|---|
generate ( ) : void | Create or update the file containing the translation strings for CRUD component usage | |
getOptionParser ( ) : ConsoleOptionParser | Gets the option parser instance and configures it. | |
path ( mixed $path = null ) : string | path |
Метод | Описание | |
---|---|---|
_addDocBlock ( string $message ) : boolean | _addDocBlock | |
_generateTranslations ( mixed $modelName ) : void | _generateTranslations | |
_getModels ( ) : array | _getModels | |
_initializeMessages ( ) : void | _initializeMessages | |
_writeFile ( ) : string | _writeFile |
protected _addDocBlock ( string $message ) : boolean | ||
$message | string | |
Результат | boolean | success |
protected _generateTranslations ( mixed $modelName ) : void | ||
$modelName | mixed | name of a model or false for the general messages |
Результат | void |
protected _getModels ( ) : array | ||
Результат | array |
protected _initializeMessages ( ) : void | ||
Результат | void |
protected _writeFile ( ) : string | ||
Результат | string | the file path written to |
public getOptionParser ( ) : ConsoleOptionParser | ||
Результат | ConsoleOptionParser |
protected array $_messages | ||
Результат | array |
protected string $_path | ||
Результат | string |
protected array $_strings | ||
Результат | array |