Comments: on this page. Click to read or post your own.

Class SimpleMultipartEncoding

Description

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

Located in /sapphire/dev/simpletest/encoding.php (line 502)

SimpleEncoding
   |
   --SimplePostEncoding
      |
      --SimpleMultipartEncoding
Variable Summary
mixed $_boundary
Method Summary
SimpleMultipartEncoding SimpleMultipartEncoding ([array $query = false], [ $boundary = false])
void writeHeadersTo ( &$socket, SimpleSocket $socket)
void writeTo ( &$socket, SimpleSocket $socket)
string _encode ()
Variables
mixed $_boundary (line 503)

Inherited Variables

Inherited from SimpleEncoding

SimpleEncoding::$_request
Methods
Constructor SimpleMultipartEncoding (line 512)

Starts empty.

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

Dispatches the form headers down the socket.

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

Redefinition of:
SimplePostEncoding::writeHeadersTo()
Dispatches the form headers down the socket.
writeTo (line 532)

Dispatches the form data down the socket.

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

Redefinition of:
SimplePostEncoding::writeTo()
Dispatches the form data down the socket.
_encode (line 542)

Renders the query string as a URL encoded request part.

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

Redefinition of:
SimpleEncoding::_encode()
Renders the query string as a URL encoded request part.

Inherited Methods

Inherited From SimplePostEncoding

SimplePostEncoding::SimplePostEncoding()
SimplePostEncoding::asUrlRequest()
SimplePostEncoding::getMethod()
SimplePostEncoding::hasMoreThanOneLevel()
SimplePostEncoding::rewriteArrayWithMultipleLevels()
SimplePostEncoding::writeHeadersTo()
SimplePostEncoding::writeTo()

Inherited From SimpleEncoding

SimpleEncoding::SimpleEncoding()
SimpleEncoding::add()
SimpleEncoding::attach()
SimpleEncoding::clear()
SimpleEncoding::getAll()
SimpleEncoding::getValue()
SimpleEncoding::merge()
SimpleEncoding::_encode()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:40:43 +1300 by phpDocumentor 1.3.2