17 using erminas.SmartAPI.Utils;
19 namespace erminas.SmartAPI.CMS.Project.ContentClasses
24 string Description {
get; }
27 internal class PageDefinition : RedDotProjectObject, IPageDefinition
29 private readonly IContentClass _contentClass;
30 private string _description;
32 internal PageDefinition(IContentClass contentClass, XmlElement element) : base(contentClass.Project, element)
34 _contentClass = contentClass;
38 public IContentClass ContentClass
40 get {
return _contentClass; }
46 @"<TEMPLATE guid=""{0}""><PAGEDEFINITION action=""delete"" guid=""{1}"" name=""{2}""/></TEMPLATE>";
48 Project.ExecuteRQL(DELETE.RQLFormat(_contentClass,
this, Name));
51 public string Description
53 get {
return _description; }
56 private void LoadXml()
58 InitIfPresent(ref _description,
"description", x => x);