16 using System.Collections.Generic;
19 using erminas.SmartAPI.Utils;
20 using erminas.SmartAPI.Utils.CachedCollections;
22 namespace erminas.SmartAPI.CMS.Project.ContentClasses
35 RetrieveFunc = GetContentClasses;
40 get {
return _project; }
43 public ISession Session
45 get {
return _project.
Session; }
48 private List<IContentClass> GetContentClasses()
50 const string LIST_CC_OF_PROJECT =
@"<TEMPLATES action=""list""/>";
52 XmlNodeList xmlNodes = xmlDoc.GetElementsByTagName(
"TEMPLATE");
54 return (from XmlElement curNode in xmlNodes
57 new ContentClass(_project, curNode.GetGuid()) {Name = curNode.GetAttributeValue(
"name")}).ToList