goog.Uri.QueryData |
opt_query
: ?string=
Optional encoded query string to parse into
the object.
|
opt_uri
: goog.Uri=
Optional uri object that should have its
cache invalidated when this object updates. Deprecated -- this
is no longer required.
|
opt_ignoreCase
: boolean=
If true, ignore the case of the parameter
name in #get.
|
Adds a key value pair.
Arguments:
Returns: !goog.Uri.QueryData
Instance of this object.
|
code » | |||
![]()
Clears the parameters.
|
code » | |||
Clone the query data instance.
Returns: !goog.Uri.QueryData
New instance of the QueryData object.
|
code » | |||
Whether there is a parameter with the given name
|
code » | |||
Whether there is a parameter with the given value.
Arguments:
Returns: boolean
Whether there is a parameter with the given value.
|
code » | |||
![]()
If the underlying key map is not yet initialized, it parses the
query string and fills the map with parsed data.
|
code » | |||
![]()
Extends a query data object with another query data or map like object. This
operates 'in-place', it does not create a new QueryData object.
Arguments:
|
code » | |||
Removes all keys that are not in the provided list. (Modifies this object.)
Returns: !goog.Uri.QueryData
a reference to this object.
|
code » | |||
![]()
Returns the first value associated with the key. If the query data has no
such key this will return undefined or the optional default.
Arguments:
Returns: *
The first string value associated with the key, or opt_default
if there's no value.
|
code » | |||
No description.
Returns: ?number
The number of parameters.
|
code » | |||
Helper function to get the key name from a JavaScript object. Converts
the object to a string, and to lower case if necessary.
Arguments:
Returns: string
valid key name which can be looked up in #keyMap_.
|
code » | |||
Returns all the keys of the parameters. If a key is used multiple times
it will be included multiple times in the returned array
|
code » | |||
Returns all the values of the parameters with the given name. If the query
data has no such key this will return an empty array. If no key is given
all values wil be returned.
Arguments:
Returns: !Array
All the values of the parameters with the given name.
|
code » | |||
![]()
Invalidate the cache.
|
code » | |||
No description.
Returns: boolean
Whether we have any parameters.
|
code » | |||
Removes all the params with the given key.
|
code » | |||
Sets a key value pair and removes all other keys with the same value.
Arguments:
Returns: !goog.Uri.QueryData
Instance of this object.
|
code » | |||
![]()
Ignore case in parameter names.
NOTE: If there are already key/value pairs in the QueryData, and
ignoreCase_ is set to false, the keys will all be lower-cased.
Arguments:
|
code » | |||
![]()
Sets the values for a key. If the key already exists, this will
override all of the existing values that correspond to the key.
|
code » | |||
No description.
Returns: string
Decoded query string.
|
code » | |||
No description.
Returns: string
Encoded query string.
|
code » |
![]()
The number of params, or null if it requires computing.
|
Code » | |
![]()
Encoded query string, or null if it requires computing from the key map.
|
Code » | |
![]()
If true, ignore the case of the parameter name in #get.
|
Code » | |
The map containing name/value or name/array-of-values pairs.
May be null if it requires parsing from the query string.
We need to use a Map because we cannot guarantee that the key names will
not be problematic for IE.
|
Code » |
![]()
Creates a new query data instance from parallel arrays of parameter names
and values. Allows for duplicate parameter names. Throws an error if the
lengths of the arrays differ.
Arguments:
Returns: !goog.Uri.QueryData
The populated query data instance.
|
code » | |||||
Creates a new query data instance from a map of names and values.
Arguments:
Returns: !goog.Uri.QueryData
The populated query data instance.
|
code » |