UpdateState() 공개 정적인 메소드

Updates visibility state of the poi
public static UpdateState ( array $poi ) : void
$poi array
리턴 void
예제 #1
0
 /**
  * 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;
 }
예제 #2
0
    /**
     * 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