Beispiel #1
0
        public static ProfilePropertyDefinitionCollection GetPropertyDefinitionsByPortal(int portalId, bool clone)
        {
            ProfilePropertyDefinitionCollection definitions = new ProfilePropertyDefinitionCollection();

            foreach (ProfilePropertyDefinition definition in GetPropertyDefinitions(portalId))
            {
                if (clone)
                {
                    definitions.Add(definition.Clone());
                }
                else
                {
                    definitions.Add(definition);
                }
            }
            return(definitions);
        }
 public ProfilePropertyDefinitionCollection GetByCategory(string category)
 {
     ProfilePropertyDefinitionCollection collection = new ProfilePropertyDefinitionCollection();
     foreach (ProfilePropertyDefinition profileProperty in InnerList)
     {
         if (profileProperty.PropertyCategory == category)
         {
             collection.Add(profileProperty);
         }
     }
     return collection;
 }
Beispiel #3
0
        public static ProfilePropertyDefinitionCollection GetPropertyDefinitionsByCategory(int portalId, string category)
        {
            ProfilePropertyDefinitionCollection definitions = new ProfilePropertyDefinitionCollection();

            foreach (ProfilePropertyDefinition definition in GetPropertyDefinitions(portalId))
            {
                if (definition.PropertyCategory == category)
                {
                    definitions.Add(definition);
                }
            }
            return(definitions);
        }
Beispiel #4
0
        public ProfilePropertyDefinitionCollection GetByCategory(string category)
        {
            ProfilePropertyDefinitionCollection collection = new ProfilePropertyDefinitionCollection();

            foreach (ProfilePropertyDefinition profileProperty in InnerList)
            {
                if (profileProperty.PropertyCategory == category)
                {
                    collection.Add(profileProperty);
                }
            }
            return(collection);
        }
Beispiel #5
0
        private static ProfilePropertyDefinitionCollection FillCollection(IDataReader dr)
        {
            ArrayList arrDefinitions = CBO.FillCollection(dr, typeof(ProfilePropertyDefinition));
            ProfilePropertyDefinitionCollection definitionsCollection = new ProfilePropertyDefinitionCollection();

            foreach (ProfilePropertyDefinition definition in arrDefinitions)
            {
                definition.ClearIsDirty();
                object setting = UserModuleBase.GetSetting(definition.PortalId, "Profile_DefaultVisibility");
                if (setting != null)
                {
                    definition.Visibility = (UserVisibilityMode)setting;
                }
                definitionsCollection.Add(definition);
            }
            return(definitionsCollection);
        }