Method |
Description |
|
__construct ( AppInstance $appInstance, PHPDaemon\Request\IRequestUpstream $upstream, object $parent = null ) |
Constructor |
|
__toString ( ) : string |
This magic method called when the object casts to string |
|
abort ( ) : void |
Aborts the request |
|
callInit ( ) |
|
|
checkIfReady ( ) : boolean |
Called to check if Request is ready |
|
codepoint ( $p ) : boolean |
Helper for easy switching between several interruptable stages of request's execution |
|
eventCall ( $arg ) : void |
Event handler of Request, called by Evtimer |
|
finish ( $status, $zombie = false ) : void |
Finish the request |
|
free ( ) : void |
Frees the request |
|
getArray ( &$var, $filter = null ) : string |
Get array value from the given variable |
|
getInteger ( &$var, $values = null ) : string |
Get integer value from the given variable |
|
getMixed ( &$var ) : string |
Get string value from the given variable |
|
getString ( &$var, $values = null ) : string |
Get string value from the given variable |
|
handleException ( $e ) : boolean | null |
Uncaught exception handler |
|
isAborted ( ) : boolean |
Is this request aborted? |
|
isFinished ( ) : boolean |
Is this request finished? |
|
isRunning ( ) : boolean |
Is this request running? |
|
log ( string $msg ) : void |
Log |
|
onAbort ( ) : void |
Called when the request aborted |
|
onFinish ( ) : void |
Called when the request finished |
|
onSleep ( ) : void |
Called when the request starts sleep |
|
onWakeup ( ) : void |
Called when the request wakes up |
|
onWrite ( ) : void |
Called when the connection is ready to accept new data |
|
out ( string $s, boolean $flush = true ) : boolean | null |
Output some data |
|
registerShutdownFunction ( callable $callback ) : void |
Adds new callback called before the request finished |
|
setPriority ( $p ) : void |
Sets the priority |
|
sleep ( integer $time, boolean $set = false ) : void |
Delays the request execution for the given number of seconds |
|
terminate ( $s = null ) : void |
Throws terminating exception |
|
unregisterShutdownFunction ( callable $callback ) : void |
Remove the given callback |
|
wakeup ( ) : void |
Cancel current sleep |
|