Geo_Location::UpdateIcon PHP Method

UpdateIcon() public static method

Updates the point marker icon file name
public static UpdateIcon ( array $poi ) : void
$poi array
return void
    public static function UpdateIcon($poi)
    {
        global $g_ado_db;
        $queryStr = 'UPDATE ' . Geo_MapLocation::TABLE . ' SET poi_style = ? WHERE id = ?';
        $sql_params = array();
        $sql_params[] = $poi['style'];
        $sql_params[] = $poi['location_id'];
        $success = $g_ado_db->Execute($queryStr, $sql_params);
    }