Class P4_OutputHandlerAbstract
Description
The P4_OutputHandlerAbstract
class is a handler
class that provides access to streaming output from the server. After
defining the output handler, set $p4->handler
to
an instance of a subclass of
P4_OutputHandlerAbstract
.
By default, P4_OutputHandlerAbstract
returns
HANDLER_REPORT
for all output methods. The different return
options are:
Value | Meaning |
---|---|
|
Messages added to output (don’t handle, don’t cancel). |
|
Output is handled by class (don’t add message to output). |
|
Operation is marked for cancel, message is added to output. |
Class Methods
class MyHandler extends P4_OutputHandlerAbstract
Constructs a new subclass of
P4_OutputHandlerAbstract
.
Instance Methods
$handler->outputBinary -> int
Process binary data.
$handler->outputInfo -> int
Process tabular data.
$handler->outputMessage -> int
Process informational or error messages.
$handler->outputStat -> int
Process tagged data.
$handler->outputText -> int
Process text data.