Index Documentation

BencodedContent
in package
implements Stringable, IHttpContent, IBencodeSerialisable

Table of Contents

Interfaces

Stringable
IHttpContent
IBencodeSerialisable
Provides an interface for serialising objects for bencoding in a controlled manner.

Methods

__construct()  : mixed
__toString()  : string
bencodeSerialise()  : mixed
Gets the data that should represent this object in a Bencode structure.
encode()  : string
fromEncoded()  : BencodedContent
fromFile()  : BencodedContent
fromRequest()  : BencodedContent
getContent()  : mixed

Methods

__construct()

public __construct(mixed $content) : mixed
Parameters
$content : mixed

bencodeSerialise()

Gets the data that should represent this object in a Bencode structure.

public bencodeSerialise() : mixed
Return values
mixed

Representative data.


        
On this page

Search results