|
Lumen 快速开发工具包
v1.2.2
|
Public 成员函数 | |
| __construct ($name, $table_name, $files=null) | |
| create ($model, $transformer_name) | |
| getPath ($name) | |
| getStub () | |
| buildBluePrint ($fields=[]) | |
Protected 成员函数 | |
| replace ($stub, $name, $model, $transformer_name) | |
| getNamespace ($name) | |
| replaceClass ($stub, $name) | |
Protected 属性 | |
| $name | |
| $bluePrintForm = '' | |
| $bluePrintJson = '' | |
| $bluePrintTitle = '' | |
| $bluePrintStoreRule = '' | |
| $bluePrintUpdateRule = '' | |
| $files | |
| $tableName | |
| __construct | ( | $name, | |
| $table_name, | |||
$files = null |
|||
| ) |
ControllerCreator constructor.
| string | $name | |
| null | $files |
| buildBluePrint | ( | $fields = [] | ) |
Build the table blueprint.
| array | $fields |
| create | ( | $model, | |
| $transformer_name | |||
| ) |
Create a controller.
| string | $model | |
| string | $transformer_name |
引用了 Fxiao\LumenTools\$model, ControllerCreator\getStub() , 以及 ControllerCreator\replace().

|
protected |
Get controller namespace from giving name.
| string | $name |
被这些函数引用 ControllerCreator\replaceClass().

| getPath | ( | $name | ) |
Get file path from giving controller name.
| $name |
| getStub | ( | ) |
|
protected |
| string | $stub | |
| string | $name | |
| string | $model |
引用了 Fxiao\LumenTools\$model , 以及 ControllerCreator\replaceClass().
被这些函数引用 ControllerCreator\create().


|
protected |
Replace the class name for the given stub.
| string | $stub | |
| string | $name |
引用了 ControllerCreator\getNamespace().
被这些函数引用 ControllerCreator\replace().

