Subtext.Providers.BlogEntryEditor.FCKeditor.FileBrowserConnector.GetCategories C# (CSharp) Method

GetCategories() private static method

private static GetCategories ( XmlNode connectorNode, string currentFolder ) : void
connectorNode XmlNode
currentFolder string
return void
        private static void GetCategories( XmlNode connectorNode, string currentFolder )
        {
            if(currentFolder.Equals("/") )
            {
                IList<LinkCategory> catList = Links.GetCategories(CategoryType.PostCollection, ActiveFilter.None);

                // Create the "Folders" node.
                XmlNode oFoldersNode = XmlUtil.AppendElement( connectorNode, "Folders" ) ;

                foreach(LinkCategory category in catList)
                {
                    // Create the "Folders" node.
                    XmlNode oFolderNode = XmlUtil.AppendElement( oFoldersNode, "Folder" ) ;
                    XmlUtil.SetAttribute( oFolderNode, "name", category.Title ) ;
                }
            }
        }