Свойство | Тип | Описание | |
---|---|---|---|
$curPart | Current Part |
Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 |
Результат | void |
public getChunkString ( ) : string | ||
Результат | string | Chunk body |
public readFromBuffer ( EventBuffer $buf ) : integer | ||
$buf | EventBuffer | Source nuffer |
Результат | integer |
public setBoundary ( string $boundary ) : void | ||
$boundary | string | Boundary |
Результат | void |
public setRequest ( |
||
$req | Request | |
Результат | 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 |
Результат | void |