Class SimpleMultipartEncoding

Description

Bundle of POST parameters in the multipart format. Can include file uploads.

Located in /encoding.php (line 599)

SimpleEncoding
   |
   --SimpleEntityEncoding
      |
      --SimplePostEncoding
         |
         --SimpleMultipartEncoding
Method Summary
 SimpleMultipartEncoding __construct ([array $query = false], [ $boundary = false])
 string encode ()
 void writeHeadersTo ( &$socket, SimpleSocket $socket)
 void writeTo ( &$socket, SimpleSocket $socket)
Methods
Constructor __construct (line 609)

Starts empty.

  • access: public
SimpleMultipartEncoding __construct ([array $query = false], [ $boundary = false])
  • array $query: Hash of parameters. Multiple values are as lists on a single key.
  • $boundary

Redefinition of:
SimplePostEncoding::__construct()
Starts empty.
encode (line 639)

Renders the query string as a URL encoded request part.

  • return: Part of URL.
  • access: public
string encode ()

Redefinition of:
SimpleEntityEncoding::encode()
Renders the request body
writeHeadersTo (line 619)

Dispatches the form headers down the socket.

  • access: public
void writeHeadersTo ( &$socket, SimpleSocket $socket)

Redefinition of:
SimpleEntityEncoding::writeHeadersTo()
Dispatches the form headers down the socket.
writeTo (line 629)

Dispatches the form data down the socket.

  • access: public
void writeTo ( &$socket, SimpleSocket $socket)

Redefinition of:
SimpleEntityEncoding::writeTo()
Dispatches the form data down the socket.

Inherited Methods

Inherited From SimplePostEncoding

 SimplePostEncoding::__construct()
 SimplePostEncoding::asUrlRequest()
 SimplePostEncoding::getMethod()
 SimplePostEncoding::hasMoreThanOneLevel()
 SimplePostEncoding::rewriteArrayWithMultipleLevels()

Inherited From SimpleEntityEncoding

 SimpleEntityEncoding::__construct()
 SimpleEntityEncoding::encode()
 SimpleEntityEncoding::getContentType()
 SimpleEntityEncoding::writeHeadersTo()
 SimpleEntityEncoding::writeTo()

Inherited From SimpleEncoding

 SimpleEncoding::__construct()
 SimpleEncoding::add()
 SimpleEncoding::addPair()
 SimpleEncoding::attach()
 SimpleEncoding::clear()
 SimpleEncoding::encode()
 SimpleEncoding::getAll()
 SimpleEncoding::getValue()
 SimpleEncoding::merge()

Documentation generated on Sun, 31 Oct 2010 16:31:20 -0500 by phpDocumentor 1.4.3