Proxy between a MessagePart and a Parser.
ParserPartProxy objects are responsible for ferrying requests from message parts to a proxy as they're requested, and for maintaining state information for a parser as necessary.
- author Zaahid Bateson
Abstract
Methods |
public __construct(ZBateson |
public addError(string $message, string $level) : ZBateson |
public getHeaderContainer() : ZBateson |
public getMessageResourceHandle() : ?mixed
|
public getMessageResourceHandlePos() : int |
public getParent() : ?ZBateson |
public getPart() : ZBateson Returns the IMessagePart associated with this proxy.
|
public getStream() : Psr\Http\Message\StreamInterface |
public getStreamContentLength() : int |
public getStreamContentStartPos() : ?int |
public getStreamPartLength() : int |
public getStreamPartStartPos() : int |
public isContentParsed() : bool |
public isMime() : bool |
public parseAll() : static Parses everything under this part. For ParserPartProxy, this is just content, but sub-classes may override this to parse all children as well for example. |
public parseContent() : static Requests the parser to parse this part's content, and call setStreamContentStartPos/EndPos to setup this part's boundaries within the main message's raw stream. The method first checks to see if the content has already been parsed, and is safe to call multiple times. |
public setPart(ZBateson Sets the associated part.
|
public setStreamContentStartPos(int $streamContentStartPos) : static |
public setStreamPartAndContentEndPos(int $streamContentEndPos) : static |
public setStreamPartEndPos(int $streamPartEndPos) : static |
public setStreamPartStartPos(int $streamPartStartPos) : static |
Properties |
protected ZBateson
|
protected ZBateson
|
Properties |
private ZBateson
|