PHP2Go Javascript Framework

Class Hash

Object
   |
   +--Collection
         |
         +--Hash

class Hash
extends Collection

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

assign

void assign(<Object> target)

containsKey

Boolean containsKey(<String> key)

each

 <private> void each(<Function> iterator)

findKey

Object findKey(<Object> value)

findValue

Object findValue(<String> key)

getKeys

Array getKeys()

getValues

Array getValues()

serialize

String serialize()

set

void set(<String> key, <Object> value)

toQueryString

String toQueryString()

unset

void unset(<String> key)

valueOf

Hash valueOf(<Object> iterable)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007