C# Class SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy

Inheritance: iSerializationEvents
Show file Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Add_Child ( string NewSegment, int NewWebContentID = null ) : SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node

Add a new child node to this node

Add_Child ( SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node NewNode ) : void

Add a new child node to this node

Add_Single_Node ( int WebContentID, string Redirect, string Level1, string Level2, string Level3, string Level4, string Level5, string Level6, string Level7, string Level8 ) : void

Add a single new node to the web hierarchy

Clear ( ) : void

Clear this hierarchy object, by clearing the collection of root nodes

Find ( List UrlSegments ) : SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node

Look within this hierarchy for a match for a collection of incoming URL segments

PostUnSerialization ( ) : void

Method is called by the serializer after this item is unserialized

WebContent_Hierarchy ( ) : System

Constructor for a new instance of the WebContent_Hierarchy class

Method Details

Add_Child() public method

Add a new child node to this node
public Add_Child ( string NewSegment, int NewWebContentID = null ) : SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node
NewSegment string Segment name for this element with the web content hierarchy
NewWebContentID int [Optional] Primary key for this web content page, from the database
return SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node

Add_Child() public method

Add a new child node to this node
public Add_Child ( SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node NewNode ) : void
NewNode SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node Fully built new root child node
return void

Add_Single_Node() public method

Add a single new node to the web hierarchy
public Add_Single_Node ( int WebContentID, string Redirect, string Level1, string Level2, string Level3, string Level4, string Level5, string Level6, string Level7, string Level8 ) : void
WebContentID int Primary key to the web content page to add
Redirect string Redirect URL associated with the final web content page
Level1 string First level URL segment for the web content page to add
Level2 string Second level URL segment for the web content page to add
Level3 string Third level URL segment for the web content page to add
Level4 string Fourth level URL segment for the web content page to add
Level5 string Fifth level URL segment for the web content page to add
Level6 string Seventh level URL segment for the web content page to add
Level7 string Seventh level URL segment for the web content page to add
Level8 string Eighth level URL segment for the web content page to add
return void

Clear() public method

Clear this hierarchy object, by clearing the collection of root nodes
public Clear ( ) : void
return void

Find() public method

Look within this hierarchy for a match for a collection of incoming URL segments
public Find ( List UrlSegments ) : SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node
UrlSegments List Collection of URL segments to match within this deep hierarchy
return SobekCM.Core.WebContent.Hierarchy.WebContent_Hierarchy_Node

PostUnSerialization() public method

Method is called by the serializer after this item is unserialized
public PostUnSerialization ( ) : void
return void

WebContent_Hierarchy() public method

Constructor for a new instance of the WebContent_Hierarchy class
public WebContent_Hierarchy ( ) : System
return System