public static DbItemContainer GetItemContainer(ParsePage pageInfo) { var dbItemContainer = new DbItemContainer(); if (pageInfo.ChannelItems.Count > 0) { dbItemContainer.ChannelItem = pageInfo.ChannelItems.Peek(); } if (pageInfo.ContentItems.Count > 0) { dbItemContainer.ContentItem = pageInfo.ContentItems.Peek(); } if (pageInfo.SqlItems.Count > 0) { dbItemContainer.SqlItem = pageInfo.SqlItems.Peek(); } if (pageInfo.SiteItems.Count > 0) { dbItemContainer.SiteItem = pageInfo.SiteItems.Peek(); } if (pageInfo.EachItems.Count > 0) { dbItemContainer.EachItem = pageInfo.EachItems.Peek(); } return(dbItemContainer); }
public static void PopEachItem(ParsePage pageInfo) { if (pageInfo.EachItems.Count > 0) { pageInfo.EachItems.Pop(); } }
public static void PopSiteItems(ParsePage pageInfo) { if (pageInfo.SiteItems.Count > 0) { pageInfo.SiteItems.Pop(); } }
public static void PopContentItem(ParsePage pageInfo) { if (pageInfo.ContentItems.Count > 0) { pageInfo.ContentItems.Pop(); } }
public static void PopChannelItem(ParsePage pageInfo) { if (pageInfo.ChannelItems.Count > 0) { pageInfo.ChannelItems.Pop(); } }
public ParseContext(ParsePage pageInfo) { Site = pageInfo.Site; ChannelId = pageInfo.PageChannelId; ContentId = pageInfo.PageContentId; }