ThinkPHP5


think\process\Builder
library\think\process\Builder.php at line 16

Class Builder

Builder
All Known Subclasses:
think\db\builder\Mysql think\db\builder\Pgsql think\db\builder\Sqlite think\db\builder\Sqlsrv

public class Builder


Constructor Summary
void

__construct(string arguments)

构造方法

Method Summary
static self

create(string arguments)

创建一个实例

static self

add(string argument)

添加一个参数

self

setPrefix(string|array prefix)

添加一个前缀

self

setArguments(string arguments)

设置参数

self

setWorkingDirectory(null|string cwd)

设置工作目录

self

inheritEnvironmentVariables(bool inheritEnv)

是否初始化环境变量

self

setEnv(string name, null|string value)

设置环境变量

self

addEnvironmentVariables(array variables)

添加环境变量

self

setInput(mixed input)

设置输入

self

setTimeout(float|null timeout)

设置超时时间

self

setOption(string name, string value)

设置proc_open选项

self

disableOutput()

禁止输出

self

enableOutput()

开启输出

Process

getProcess()

创建一个Process实例

Constructor Detail

library\think\process\Builder.php at line 33

__construct

public void __construct(string arguments)

构造方法

Parameters:
arguments - 参数

Method Detail

library\think\process\Builder.php at line 43

create

public static self create(string arguments)

创建一个实例

Parameters:
arguments - 参数

library\think\process\Builder.php at line 53

add

public static self add(string argument)

添加一个参数

Parameters:
argument - 参数

library\think\process\Builder.php at line 65

setPrefix

public self setPrefix(string|array prefix)

添加一个前缀


library\think\process\Builder.php at line 77

setArguments

public self setArguments(string arguments)

设置参数


library\think\process\Builder.php at line 89

setWorkingDirectory

public self setWorkingDirectory(null|string cwd)

设置工作目录


library\think\process\Builder.php at line 101

inheritEnvironmentVariables

public self inheritEnvironmentVariables(bool inheritEnv)

是否初始化环境变量


library\think\process\Builder.php at line 114

setEnv

public self setEnv(string name, null|string value)

设置环境变量


library\think\process\Builder.php at line 126

addEnvironmentVariables

public self addEnvironmentVariables(array variables)

添加环境变量


library\think\process\Builder.php at line 138

setInput

public self setInput(mixed input)

设置输入


library\think\process\Builder.php at line 150

setTimeout

public self setTimeout(float|null timeout)

设置超时时间


library\think\process\Builder.php at line 175

setOption

public self setOption(string name, string value)

设置proc_open选项


library\think\process\Builder.php at line 186

disableOutput

public self disableOutput()

禁止输出


library\think\process\Builder.php at line 197

enableOutput

public self enableOutput()

开启输出


library\think\process\Builder.php at line 208

getProcess

public Process getProcess()

创建一个Process实例


ThinkPHP5