프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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 array $_strings | ||
리턴 | array |