|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Collection
|
+--Hash
Defined in structures.js
| Method Summary | |
void
|
assign(<Object> target)
Iterates over the hash elements assigning the key-value pairs to a target object |
Boolean
|
containsKey(<String> key)
Check if a given key exists in the hash |
<private> void
|
each(<Function> iterator)
Private method that iterates over the hash elements. |
Object
|
findKey(<Object> value)
Searches for a given value and returns back its key |
Object
|
findValue(<String> key)
Searches for a given key and returns back its value |
Array
|
getKeys()
Return an array containing the hash keys |
Array
|
getValues()
Return an array containing the hash values |
String
|
serialize()
Dumps the hash elements as a string |
void
|
set(<String> key, <Object> value)
Set the value of a given key |
String
|
toQueryString()
Convert the hash into a query string value. |
void
|
unset(<String> key)
Remove a given key from the hash |
Hash
|
valueOf(<Object> iterable)
Builds a Hash object based on an iterable value |
| Methods inherited from class Collection |
some, every, accept, reject, valid, grep, contains, extract, inject, invoke, map, walk
|
| Method Detail |
void assign(<Object> target)
target - Target object
Boolean containsKey(<String> key)
key - Element key
<private> void each(<Function> iterator)
iterator - Iterator function
Object findKey(<Object> value)
value - Search value
Object findValue(<String> key)
key - Search key
Array getKeys()
Array getValues()
String serialize()
void set(<String> key, <Object> value)
key - Key name
value - Key value
String toQueryString()
void unset(<String> key)
key - Key name
Hash valueOf(<Object> iterable)
iterable - Iterable object
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||