Ejemplo n.º 1
0
        public override System.Collections.Generic.IEnumerable<ContentItem> GetParts(ContentItem belowParentItem, string inZoneNamed, string filteredForInterface)
        {
            if(inZoneNamed.EndsWith("None"))
                return new ItemList();
            if (inZoneNamed.EndsWith("All"))
                return belowParentItem.Children.Where(new DelegateFilter(ci => ci.ZoneName != null));

			return belowParentItem.GetChildPartsUnfiltered(inZoneNamed).WhereAccessible(WebContext.User, Security);
        }
Ejemplo n.º 2
0
        public override System.Collections.Generic.IEnumerable <ContentItem> GetParts(ContentItem belowParentItem, string inZoneNamed, string filteredForInterface)
        {
            if (inZoneNamed.EndsWith("None"))
            {
                return(new ItemList());
            }
            if (inZoneNamed.EndsWith("All"))
            {
                return(belowParentItem.Children.Where(new DelegateFilter(ci => ci.ZoneName != null)));
            }

            return(belowParentItem.GetChildPartsUnfiltered(inZoneNamed).WhereAccessible(WebContext.User, Security));
        }