Ejemplo n.º 1
0
        private void BuildPortalSettings(int tabId, PortalInfo portal)
        {
            PortalSettingsController.Instance().LoadPortalSettings(this);

            if (portal == null)
            {
                return;
            }

            PortalSettingsController.Instance().LoadPortal(portal, this);

            var key   = string.Join(":", "ActiveTab", portal.PortalID.ToString(), tabId.ToString());
            var items = HttpContext.Current != null ? HttpContext.Current.Items : null;

            if (items != null && items.Contains(key))
            {
                ActiveTab = items[key] as TabInfo;
            }
            else
            {
                ActiveTab = PortalSettingsController.Instance().GetActiveTab(tabId, this);
                if (items != null && ActiveTab != null)
                {
                    items[key] = ActiveTab;
                }
            }
        }
        private void BuildPortalSettings(int tabId, PortalInfo portal)
        {
            PortalSettingsController.Instance().LoadPortalSettings(this);

            if (portal == null)
            {
                return;
            }

            PortalSettingsController.Instance().LoadPortal(portal, this);

            ActiveTab = PortalSettingsController.Instance().GetActiveTab(tabId, this);
        }
Ejemplo n.º 3
0
 public static PortalAliasMapping GetPortalAliasMappingMode(int portalId)
 {
     return(PortalSettingsController.Instance().GetPortalAliasMappingMode(portalId));
 }