using System;
using System.Collections.Generic;
using Umbraco.Core;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.Services;
using ValueFallback = Umbraco.Core.Constants.Content.ValueFallback;
namespace Umbraco.Web.Models.PublishedContent
{
///
/// Provides a default implementation for .
///
public class PublishedValueFallback : IPublishedValueFallback
{
private readonly ILocalizationService _localizationService;
///
/// Initializes a new instance of the class.
///
///
public PublishedValueFallback(ILocalizationService localizationService)
{
_localizationService = localizationService;
}
///
public object GetValue(IPublishedProperty property, string culture, string segment, object defaultValue)
{
// no fallback here
return defaultValue;
}
///
public T GetValue(IPublishedProperty property, string culture, string segment, T defaultValue)
{
// no fallback here
return defaultValue;
}
///
public object GetValue(IPublishedElement content, string alias, string culture, string segment, object defaultValue)
{
// no fallback here
return defaultValue;
}
///
public T GetValue(IPublishedElement content, string alias, string culture, string segment, T defaultValue)
{
// no fallback here
return defaultValue;
}
///
public object GetValue(IPublishedContent content, string alias, string culture, string segment, object defaultValue, int fallback)
{
// is that ok?
return GetValue