Go to the documentation of this file.00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004
00005 namespace N2.Collections
00006 {
00010 public class ZoneFilter : ItemFilter
00011 {
00012 public ZoneFilter(string zoneName)
00013 {
00014 this.zoneName = zoneName;
00015 }
00016
00017 private string zoneName;
00018 public string ZoneName
00019 {
00020 get { return zoneName; }
00021 set { zoneName = value; }
00022 }
00023
00024 public override bool Match(ContentItem item)
00025 {
00026 return item.ZoneName == ZoneName;
00027 }
00028
00029 public static void Filter(IList<ContentItem> items, string zoneName)
00030 {
00031 ItemFilter.Filter(items, new ZoneFilter(zoneName));
00032 }
00033 }
00034 }