Updates the object's properties with the values in the specified map.
@param $map array Map of values to set.
177215
public function setAll($map) {
        
        if ($map instanceof SmartMap) {
            $this->properties = array_merge($this->properties, $map->getBaseMapAsArray());
        } else {

            if ($this->isAssoc($map))
            {
                //echo "isAssoc==TRUE\r\n";
                foreach ($map as $key => $value) {
                    $this->set($key, $value);
                }
            } else if (is_array($map)){
                //echo "isAssoc==FALSE\r\n";
                $list = array();
                foreach ($map as $object) {
                    $tmpBaseMap = new SmartMap();
                    $tmpBaseMap->setAll($object);
                    array_push($list, $tmpBaseMap->getBaseMapAsArray());
                }

                $this->set("list", $list);
            }
        }
    }
1047492
public function deleteValue(string $key) : void
    {
        if (isset($this->map[$key])) {
            unset($this->map[$key]);
        }
    }
500495
public function set($property, $value)
    {
        $properties = $this->getValue('properties', []);
        $properties[$property] = [$value];
        $this->setValue('properties', $properties);
    }
113
public function register_action_map($map)
    {
        if (is_array($map)) {
            foreach ($map as $idx => $val) {
                $this->action_map[$idx] = $val;
            }
        }
    }
714292
public function onBeginMap(Map $map)
    {
        $this->widget->setDedimaniaRecord(null);
        $this->widget->setLocalRecord(null);
        $this->widget->update($this->allPlayers);
    }
843203
public void binding(Map map)
	{
		Map<String, Object> values = map;
		if(values==null) return ;
		for (Entry<String,Object> entry : values.entrySet())
		{
			this.binding(entry.getKey(), entry.getValue());
		}
		
	}
270416
private function loadRatings(Map $map)
    {
        try {
            $this->mapRatingsService->load($map);
        } catch (PropelException $e) {
            $this->logger->error("error loading map ratings", ["exception" => $e]);
        }
    }
1312545
public static function registerMap($map)
    {
        $maps = (array) $map;
        array_walk($maps, function (&$name) {
            $name = 'js/' . $name . '.js';
        });
        static::$_mapJsFiles = array_unique(array_merge(static::$_mapJsFiles, $maps));
        if (static::$_mapJsFiles) {
            MapAsset::register(Yii::$app->getView())->js = static::$_mapJsFiles;
        }
    }
889864
public function onEndMap(Map $map)
    {
        $jbmap = $this->jukeboxService->getFirst();
        if ($jbmap) {
            try {
                $this->factory->getConnection()->chooseNextMap($jbmap->getMap()->fileName);
                $this->jukeboxService->removeMap($jbmap->getMap(), null, true);
            } catch (\Exception $e) {
                $this->jukeboxService->removeMap($jbmap->getMap(), null, true);
            }
        }
    }
1089796
public void importValues(Map<String, Object> map) {
        for (String key : map.keySet()) {
            this.set(key, map.get(key));
        }
    }
474624
public function setDiscriminatorMap(array $map) : void
    {
        foreach ($map as $value => $className) {
            $this->addDiscriminatorMapClass($value, $className);
        }
    }
726975
public function update($table, array $map = []): Query\UpdateQuery
    {
        $query = $this->engine->makeUpdate()->table($table);
        if (empty($map) === false) {
            $query = $query->set($map);
        }
        return $query;
    }
1013619
function (map) {
            var key;
            for (key in map) {
                if (map.hasOwnProperty(key)) {
                    this.addInstance(key, map[key]);
                }
            }
            return this;
        }
949100
public function properties($map)
    {
        foreach($map as $name=>$type)
            $this->_properties[$name] = new Property($name, $type);

        return $this;
    }
222145
private static <K, V> void set(Map<K, Set<V>> map, K key, V value) {
    Set<V> values = map.get(key);
    if (values == null) {
      values = new HashSet<>();
      map.put(key, values);
    }
    values.add(value);
  }
719412
private function setMap(array $map)
    {
        // Resets (overwrites) map.
        $this->map = [];
        foreach ($map as $type => $className) {
            $this->addClassToMap($type, $className);
        }
        return $this;
    }
912264
public function map($map = null) {
		if ($map !== null) {
			$this->_map = $map;
			return $this;
		}
		return $this->_map;
	}