a-blog cms PHP API Reference

ProcessTask
in package

FinalYes

実行するコマンドとそのコンテキストを表す値オブジェクト。

Table of Contents

Properties

$command  : array<string|int, mixed>
$context  : array<string|int, mixed>
$cwd  : string|null
$env  : array<string|int, mixed>|null
$stdin  : string|null
$timeoutSeconds  : float|null

Methods

__construct()  : mixed
getCommand()  : array<string|int, string>
getContext()  : array<string, mixed>
getCwd()  : string|null
getEnv()  : array<string, string>|null
getStdin()  : string|null
getTimeoutSeconds()  : float|null

Properties

$context

private array<string|int, mixed> $context = []

$env

private array<string|int, mixed>|null $env = null

$timeoutSeconds

private float|null $timeoutSeconds = null

Methods

__construct()

public __construct(array<string|int, string> $command[, string|null $cwd = null ][, array<string, string>|null $env = null ][, float|null $timeoutSeconds = null ][, string|null $stdin = null ][, array<string, mixed> $context = [] ]) : mixed
Parameters
$command : array<string|int, string>

コマンドと引数(例: ['php', 'console.php', 'job', '123'])

$cwd : string|null = null
$env : array<string, string>|null = null

追加の環境変数

$timeoutSeconds : float|null = null
$stdin : string|null = null
$context : array<string, mixed> = []

任意のコンテキスト情報(entryId など)

getCommand()

public getCommand() : array<string|int, string>
Return values
array<string|int, string>

getContext()

public getContext() : array<string, mixed>
Return values
array<string, mixed>

getCwd()

public getCwd() : string|null
Return values
string|null

getEnv()

public getEnv() : array<string, string>|null
Return values
array<string, string>|null

getStdin()

public getStdin() : string|null
Return values
string|null

getTimeoutSeconds()

public getTimeoutSeconds() : float|null
Return values
float|null

        
On this page

Search results