Class SimpleGetEncoding

Description

Bundle of GET parameters. Can include repeated parameters.

Located in /encoding.php (line 329)

SimpleEncoding
   |
   --SimpleGetEncoding
Direct descendents
Class Description
 class SimpleHeadEncoding Bundle of URL parameters for a HEAD request.
 class SimpleDeleteEncoding Bundle of URL parameters for a DELETE request.
Method Summary
 SimpleGetEncoding __construct ([array $query = false])
 string asUrlRequest ()
 string getMethod ()
 void writeHeadersTo ( &$socket, SimpleSocket $socket)
 void writeTo ( &$socket, SimpleSocket $socket)
Methods
Constructor __construct (line 338)

Starts empty.

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

Redefinition of:
SimpleEncoding::__construct()
Starts empty.

Redefined in descendants as:
asUrlRequest (line 374)

Renders the query string as a URL encoded request part for attaching to a URL.

  • return: Part of URL.
  • access: public
string asUrlRequest ()
getMethod (line 347)

HTTP request method.

  • return: Always GET.
  • access: public
string getMethod ()

Redefined in descendants as:
writeHeadersTo (line 356)

Writes no extra headers.

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

No data is sent to the socket as the data is encoded into the URL.

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

Inherited Methods

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