PHP Class think\Build

Mostrar archivo Open project: top-think/framework Class Usage Examples

Public Methods

Method Description
module ( string $module = '', array $list = [], string $namespace = 'app', boolean $suffix = false ) : void 创建模块
run ( array $build = [], string $namespace = 'app', boolean $suffix = false ) : void 根据传入的build资料创建目录和文件

Protected Methods

Method Description
buildCommon ( string $module ) : void 创建模块的公共文件
buildDir ( array $list ) : void 创建目录
buildFile ( array $list ) : void 创建文件
buildHello ( string $module, string $namespace, boolean $suffix = false ) : void 创建模块的欢迎页面

Method Details

buildCommon() protected static method

创建模块的公共文件
protected static buildCommon ( string $module ) : void
$module string 模块名
return void

buildDir() protected static method

创建目录
protected static buildDir ( array $list ) : void
$list array 目录列表
return void

buildFile() protected static method

创建文件
protected static buildFile ( array $list ) : void
$list array 文件列表
return void

buildHello() protected static method

创建模块的欢迎页面
protected static buildHello ( string $module, string $namespace, boolean $suffix = false ) : void
$module string 模块名
$namespace string 应用类库命名空间
$suffix boolean 类库后缀
return void

module() public static method

创建模块
public static module ( string $module = '', array $list = [], string $namespace = 'app', boolean $suffix = false ) : void
$module string 模块名
$list array build列表
$namespace string 应用类库命名空间
$suffix boolean 类库后缀
return void

run() public static method

根据传入的build资料创建目录和文件
public static run ( array $build = [], string $namespace = 'app', boolean $suffix = false ) : void
$build array build列表
$namespace string 应用类库命名空间
$suffix boolean 类库后缀
return void