PHP Класс VersionPress\Utils\Process

Наследование: extends Symfony\Component\Process\Process
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $commandline, $cwd = null, array $env = null, $input = null, $timeout = 3600, array $options = [] )
addErrorOutput ( $line )
addOutput ( $line )
getConsoleOutput ( ) : string Returns output as it would appear in the console and doesn't care whether it comes from STDOUT or STDERR (or both).
start ( $callback = null )

Описание методов

__construct() публичный Метод

public __construct ( $commandline, $cwd = null, array $env = null, $input = null, $timeout = 3600, array $options = [] )
$env array
$options array

addErrorOutput() публичный Метод

public addErrorOutput ( $line )

addOutput() публичный Метод

public addOutput ( $line )

getConsoleOutput() публичный Метод

This is useful in client code that just wants to show the user whatever the command printed. The programs will sometimes use STDOUT, sometimes STDERR, sometimes mistakenly STDOUT instead of STDERR etc. but it often doesn't matter, we just want to pass the output on to the user.
public getConsoleOutput ( ) : string
Результат string

start() публичный Метод

public start ( $callback = null )