Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FeatureCategoryNode"/> class.
        /// </summary>
        /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param>
        /// <param name="categoryName">The name of the feature category.</param>
        /// <param name="features">The objects which represent the Orchard features to encapsulate.</param>
        public FeatureCategoryNode(IPowerShellVfs vfs, string categoryName, OrchardFeature[] features)
            : base(vfs, categoryName)
        {
            this.features = features;

            this.Item = new CollectionItem(this) 
            {
                Name = categoryName,
                Description = "Contains all features of the " + categoryName + " category."
            };
        }
Beispiel #2
0
 public FeatureNode(IPowerShellVfs vfs, OrchardFeature feature)
     : base(vfs, feature.Name, feature)
 {
 }