C# Класс erminas.SmartAPI.CMS.Project.ContentClasses.Elements.ContentClassElement

Base class for content class element types.
For every attribute/property that can be compared and/or saved there has to be an IRDAttribute created and registered, so that the comparison/assignement can be made independent of the element type.
Наследование: LanguageDependentPartialRedDotProjectObject, IContentClassElement
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CommitInCurrentLanguage ( ) : void

Save element on the server. Saves only the attributes!

CommitInLanguage ( string abbreviation ) : void
CopyToContentClass ( IContentClass contentClass ) : IContentClassElement

Copies the element to another content class by creating a new element and copying the attribute values to it. Make sure to set the language variant in the target project into which the element should be copied, first.

Override this method, if you need to set other values than the direct attributes of the element (e.g. setting text values of TextHtml elements) The target content class is only modified on the server, thus the content class object does not contain the newly created element. If you need an updated version of the content class, you have to retrieve it again with new ContentClass(Project, Guid);

Защищенные методы

Метод Описание
ContentClassElement ( IContentClass contentClass, XmlElement xmlElement ) : System
LoadWholeObject ( ) : void
RetrieveWholeObject ( ) : XmlElement

Приватные методы

Метод Описание
CreateElement ( IContentClass contentClass, ElementType elementType ) : ContentClassElement

Create an empty element of a specific type as child of a content class. Does not insert the element into the contentclass itself, but just provides a vanilla element with an XML node that contains only the "elttype" and the empty "guid" attribute.

CreateElement ( IContentClass contentClass, XmlElement xmlElement ) : ContentClassElement

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.

CreateElement ( IContentClass contentClass, System.Guid elementGuid ) : IContentClassElement
GetRQLRepresentation ( IProject project, System.Guid ccElementGuid ) : XmlElement
LoadXml ( ) : void

Описание методов

CommitInCurrentLanguage() публичный Метод

Save element on the server. Saves only the attributes!
public CommitInCurrentLanguage ( ) : void
Результат void

CommitInLanguage() публичный Метод

public CommitInLanguage ( string abbreviation ) : void
abbreviation string
Результат void

ContentClassElement() защищенный Метод

protected ContentClassElement ( IContentClass contentClass, XmlElement xmlElement ) : System
contentClass IContentClass
xmlElement System.Xml.XmlElement
Результат System

CopyToContentClass() публичный Метод

Copies the element to another content class by creating a new element and copying the attribute values to it. Make sure to set the language variant in the target project into which the element should be copied, first.
Override this method, if you need to set other values than the direct attributes of the element (e.g. setting text values of TextHtml elements) The target content class is only modified on the server, thus the content class object does not contain the newly created element. If you need an updated version of the content class, you have to retrieve it again with new ContentClass(Project, Guid);
public CopyToContentClass ( IContentClass contentClass ) : IContentClassElement
contentClass IContentClass target content class, into which the element should be copied
Результат IContentClassElement

LoadWholeObject() защищенный Метод

protected LoadWholeObject ( ) : void
Результат void

RetrieveWholeObject() защищенный Метод

protected RetrieveWholeObject ( ) : XmlElement
Результат System.Xml.XmlElement