/** * Updates the point text content, the COW way * * @param int $p_mapId * @param array $p_contents * * @return bool */ public static function UpdateContents($p_mapId, $p_contents) { global $g_ado_db; foreach ($p_contents as $poi_obj) { $poi = get_object_vars($poi_obj); if ($poi['icon_changed']) { self::UpdateIcon($poi); } if ($poi['state_changed']) { Geo_MapLocationContent::UpdateState($poi); } if ($poi['image_changed']) { Geo_Multimedia::UpdateMedia($poi, 'image'); } if ($poi['video_changed']) { Geo_Multimedia::UpdateMedia($poi, 'video'); } if ($poi['text_changed']) { Geo_MapLocationContent::UpdateText($poi); } } return true; }
/** * Updates the point text content, the COW way * * @param int $p_mapId * @param array $p_contents * * @return bool */ public static function UpdateContents($p_mapId, $p_contents) { global $g_ado_db; foreach ($p_contents as $poi_obj) { $poi = get_object_vars($poi_obj); if ($poi["icon_changed"]) { self::UpdateIcon($poi); } if ($poi["state_changed"]) { Geo_MapLocationContent::UpdateState($poi); } if ($poi["image_changed"]) { Geo_Multimedia::UpdateMedia($poi, "image"); } if ($poi["video_changed"]) { Geo_Multimedia::UpdateMedia($poi, "video"); } if ($poi["text_changed"]) { Geo_MapLocationContent::UpdateText($poi); } } ; return true; } // fn UpdateContents