Class SimpleQueryString

Description

Bundle of GET/POST parameters. Can include repeated parameters.

Located in /libraries/pear/simpletest/url.php (line 15)


	
			
Variable Summary
 mixed $_request
Method Summary
 SimpleQueryString SimpleQueryString ([mixed $query = false], array $query/SimpleQueryString)
 void add (string $key, string/array $value)
 string asString ()
 array getAll ()
 array getKeys ()
 string/array getValue (mixed $key)
 void merge (mixed $query, array $query/SimpleQueryString)
Variables
mixed $_request (line 16)
Methods
Constructor SimpleQueryString (line 25)

Starts empty.

  • access: public
SimpleQueryString SimpleQueryString ([mixed $query = false], array $query/SimpleQueryString)
  • array $query/SimpleQueryString: Hash of parameters. Multiple values are as lists on a single key.
add (line 39)

Adds a parameter to the query.

  • access: public
void add (string $key, string/array $value)
  • string $key: Key to add value to.
  • string/array $value: New data.
asString (line 117)

Renders the query string as a URL encoded request part.

  • return: Part of URL.
  • access: public
string asString ()
getAll (line 103)

Gets all parameters as structured hash. Repeated values are list values.

  • return: Hash of keys and value sets.
  • access: public
array getAll ()
getKeys (line 93)

Accessor for key list.

  • return: List of keys present.
  • access: public
array getKeys ()
getValue (line 78)

Accessor for single value.

  • return: False if missing, string if present and array if multiple entries.
  • access: public
string/array getValue (mixed $key)
merge (line 59)

Adds a set of parameters to this query.

  • access: public
void merge (mixed $query, array $query/SimpleQueryString)
  • array $query/SimpleQueryString: Hash of parameters. Multiple values are as lists on a single key.

Documentation generated on Fri, 24 Dec 2004 13:03:52 +0000 by phpDocumentor 1.3.0RC3