Property | Type | Description | |
---|---|---|---|
$curPart | Current Part |
Property | Type | Description | |
---|---|---|---|
$EOF | EOF | ||
$boundary | Boundary | ||
$curChunkSize | Size of current upload chunk | ||
$curPartDisp | Content dispostion of current Part | ||
$frozen | Frozen | ||
$maxFileSize | Maximum file size from multi-part query | ||
$readed | Readed | ||
$req | Related Request | ||
$state | (self::STATE_*) State of multi-part processor |
Method | Description | |
---|---|---|
freeze ( boolean $at_front = false ) : void | Freeze input | |
getChunkString ( ) : string | Get current upload chunk as string | |
isEof ( ) : boolean | Is EOF? | |
isFrozen ( ) : boolean | Is frozen? | |
log ( string $msg ) : void | Log | |
look ( integer $n, integer $o ) : string | Read from buffer without draining | |
parseMultipart ( ) : void | Parses multipart | |
readFromBuffer ( EventBuffer $buf ) : integer | Moves $n bytes from input buffer to arbitrary buffer | |
readFromString ( string $chunk, boolean $final = true ) : void | Append string to input buffer | |
sendEOF ( ) : void | Send EOF | |
setBoundary ( string $boundary ) : void | Set boundary | |
setRequest ( |
Set request | |
unfreeze ( boolean $at_front = false ) : void | Unfreeze input | |
writeChunkToFd ( mixed $fd, callable $cb = null ) : boolean | Write current upload chunk to file descriptor |
Method | Description | |
---|---|---|
onEOF ( ) : void | onEOF | |
onRead ( ) : void | onRead |
public freeze ( boolean $at_front = false ) : void | ||
$at_front | boolean | At front. Default is true. If the front of a buffer is frozen, operations that drain data from the front of the buffer, or that prepend data to the buffer, will fail until it is unfrozen. If the back a buffer is frozen, operations that append data from the buffer will fail until it is unfrozen |
return | void |
public getChunkString ( ) : string | ||
return | string | Chunk body |
public readFromBuffer ( EventBuffer $buf ) : integer | ||
$buf | EventBuffer | Source nuffer |
return | integer |
public setBoundary ( string $boundary ) : void | ||
$boundary | string | Boundary |
return | void |
public setRequest ( |
||
$req | Request | |
return | void |
public unfreeze ( boolean $at_front = false ) : void | ||
$at_front | boolean | At front. Default is true. If the front of a buffer is frozen, operations that drain data from the front of the buffer, or that prepend data to the buffer, will fail until it is unfrozen. If the back a buffer is frozen, operations that append data from the buffer will fail until it is unfrozen |
return | void |