CRM_Utils_ConsoleTee
class CRM_Utils_ConsoleTee
Capture the output from the console, copy it to a file, and pass it on.
Properties
protected string | $fileName | ||
protected resource | $fh |
Methods
static CRM_Utils_ConsoleTee
create(string $prefix = 'ConsoleTee-')
Capture console output and copy to a temp file.
__construct(string $fileName)
CRM_Utils_ConsoleTee constructor.
start(string $mode = 'w')
Start capturing console output and copying it to a file.
bool
onOutput(string $buf)
Process a snippet of data from the output buffer.
stop()
Stop capturing console output.
string
getFileName()
No description
Details
at line 50
static CRM_Utils_ConsoleTee
create(string $prefix = 'ConsoleTee-')
Capture console output and copy to a temp file.
at line 70
__construct(string $fileName)
CRM_Utils_ConsoleTee constructor.
at line 82
CRM_Utils_ConsoleTee
start(string $mode = 'w')
Start capturing console output and copying it to a file.
at line 95
bool
onOutput(string $buf)
Process a snippet of data from the output buffer.
at line 105
CRM_Utils_ConsoleTee
stop()
Stop capturing console output.