Carrotware.CMS.UI.Controls.SiteMetaWordList.GetMetaInfo C# (CSharp) Метод

GetMetaInfo() защищенный Метод

protected GetMetaInfo ( ) : List
Результат List
        protected List<IContentMetaInfo> GetMetaInfo()
        {
            List<IContentMetaInfo> lstNav = new List<IContentMetaInfo>();

            int takeTop = this.TakeTop;
            if (this.TakeTop < 0) {
                takeTop = 300000;
            }

            switch (ContentType) {
                case MetaDataType.Tag:
                    lstNav = navHelper.GetTagList(SiteData.CurrentSiteID, takeTop);
                    break;

                case MetaDataType.Category:
                    lstNav = navHelper.GetCategoryList(SiteData.CurrentSiteID, takeTop);
                    break;

                case MetaDataType.DateMonth:
                    lstNav = navHelper.GetMonthBlogUpdateList(SiteData.CurrentSiteID, takeTop, !SecurityData.IsAuthEditor);
                    break;

                default:
                    break;
            }

            if (lstNav != null) {
                if (SecurityData.IsAuthEditor) {
                    lstNav.RemoveAll(x => x.MetaInfoCount < 1 && this.ShowNonZeroCountOnly);
                    lstNav = lstNav.OrderByDescending(x => x.MetaInfoCount).ToList();
                } else {
                    lstNav.RemoveAll(x => x.MetaPublicInfoCount < 1 && this.ShowNonZeroCountOnly);
                    lstNav = lstNav.OrderByDescending(x => x.MetaPublicInfoCount).ToList();
                }

                if (ContentType == MetaDataType.DateMonth) {
                    lstNav = lstNav.OrderByDescending(x => x.MetaDataDate).ToList();
                }

                this.ItemCount = lstNav.Count;
            }

            return lstNav;
        }