16 using System.Collections.Generic;
19 using erminas.SmartAPI.Utils.CachedCollections;
21 namespace erminas.SmartAPI.CMS.Project
27 internal class Syllables : NameIndexedRDList<ISyllable>,
ISyllables
33 RetrieveFunc = GetSyllables;
37 public IProject Project
39 get {
return _project; }
42 public ISession Session
44 get {
return _project.
Session; }
47 private List<ISyllable> GetSyllables()
49 var xmlDoc = Project.
ExecuteRQL(
@"<SYLLABLES action=""list""/>",
RqlType.SessionKeyInProject);
50 var syllablelist = xmlDoc.GetElementsByTagName(
"SYLLABLE");
51 return (from XmlElement curNode in syllablelist select (ISyllable)
new Syllable(Project, curNode)).ToList();