/// <summary> /// Gets all children nodes from a given node id. /// Note: This method returns only first level children - it doesn't return children's children. /// </summary> /// <param name="parentId">Parent node id of all children to get</param> public static IEnumerable <DocumentTypeBase> GetChildren(int parentId) { return(ContentHelper.GetChildren(parentId, false)); }
/// <summary> /// Gets all children nodes of a given type from a given node id. /// Note: This method returns only first level children - it doesn't return children's children. /// </summary> /// <typeparam name="T">Strongly typed content item</typeparam> /// <param name="parentId">Parent node id of all children to get</param> public static IEnumerable <T> GetChildren <T>(int parentId) where T : DocumentTypeBase, new() { return(ContentHelper.GetChildren <T>(parentId, false)); }
/// <summary> /// Gets all children nodes from a given node id. /// Note: This method returns only first level children - it doesn't return children's children. /// </summary> public IEnumerable <DocumentTypeBase> GetChildren() { return(ContentHelper.GetChildren(this.Id)); }
/// <summary> /// Gets all children nodes from a given node id. /// </summary> /// <param name="deepGet">if set to <c>true</c> method will return children's children (complete tree).</param> /// <returns></returns> public IEnumerable <DocumentTypeBase> GetChildren(bool deepGet) { return(ContentHelper.GetChildren(this.Id, deepGet)); }
/// <summary> /// Gets all children nodes of a given type from a given node id. /// Note: This method returns only first level children - it doesn't return children's children. /// </summary> /// <typeparam name="T">Strongly typed content item</typeparam> public IEnumerable <T> GetChildren <T>() where T : DocumentTypeBase, new() { return(ContentHelper.GetChildren <T>(this.Id)); }