GoogleApiAdsCommon
[ class tree: GoogleApiAdsCommon ] [ index: GoogleApiAdsCommon ] [ all elements ]

Class: MapUtils

Source Location: /Common/Util/MapUtils.php

Class Overview


A collection of utility methods for working with maps (associative arrays).


Methods



Class Details

[line 33]
A collection of utility methods for working with maps (associative arrays).



[ Top ]


Class Methods


static method GetMap [line 46]

static array GetMap( $mapEntries)

Gets a map (associative array) from an array of map entries. A map entry is any object that has a key and value field.



Tags:

return:  a map built from the keys and values of the map entries
access:  public


Parameters:

array   $mapEntries   an array of map entries

[ Top ]

static method GetMapEntries [line 65]

static array GetMapEntries( $map, [string $mapEntryClassName = NULL])

Gets an array of map entries from a map (associative array). A map entry is any object that has a key and value field. An optional map entry class name can be specified for constructing the entries, otherise the stdClass is used.



Tags:

return:  an array of map entries built from the key-value pairs in the map
access:  public


Parameters:

array   $map   a map from key to value
string   $mapEntryClassName   an optional class name to use when constructing the map entries

[ Top ]


Documentation generated by phpDocumentor 1.4.3