Click or drag to resize
TransformationHelper Class
Base transformation class.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperTransformationHelper
        CMS.DocumentEngine.Web.UITransformationHelper

Namespace: CMS.DocumentEngine.Web.UI
Assembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 13.0.131
Syntax
C#
public class TransformationHelper : AbstractHelper<TransformationHelper>

The TransformationHelper type exposes the following members.

Constructors
  NameDescription
Public methodTransformationHelper
Top
Properties
  NameDescription
Public propertyStatic memberHTMLEncodeEval
Gets or sets whether Eval() methods in CMSAbstractTransformation class encodes string values.
Top
Methods
  NameDescription
Public methodEnsureValueHTMLEncodeReturnType
Returns HTML encoded value if value is string and it should be encoded(it depends on value of CMSHTMLEncodeEval key in configuration file).
Public methodFormatDateTime
Format date time.
Public methodGetAbsoluteUrl(String) Obsolete.
Returns absolute URL from relative path.
Public methodGetAbsoluteUrl(String, SiteInfoIdentifier) Obsolete.
Returns absolute URL from relative path.
Public methodGetAttachmentUrl Obsolete.
Returns URL of the attachment.
Public methodGetAttachmentUrlByDocumentId Obsolete.
Returns URL of the attachment.
Public methodGetAttachmentUrlByGUID
Returns URL of the attachment.
Public methodGetDateTime
Returns date time with dependence on current ITimeZone manager time zone settings.
Public methodGetDateTimeString
Returns string representation of date time with dependence on current ITimeZone manager time zone settings.
Public methodGetFileIconClass Obsolete.
Returns font icon class for specified file extension.
Public methodGetSearchedContent
Returns content parsed as XML if required and removes dynamic controls.
Public methodGetSearchImageUrl
Returns URL to given search result item.
Public methodGetSearchValue
Returns column value for current search result item.
Public methodGetSharePointFileUrl
Gets URL for accessing file on SharePoint server.
Public methodHTMLEncode
Returns encoded text.
Public methodIf Obsolete.
If input value is evaluated as True then 'true result' is returned, otherwise 'false result' is returned.
Public methodIfCompare Obsolete.
Transformation "if" statement for guid, int, string, double, decimal, boolean, DateTime The type of compare depends on comparable value (second parameter) If both values are NULL, method returns false result.
Public methodIfDataSourceIsEmpty Obsolete.
Returns nonEmptyResult if specified data source is null or empty, else returns emptyResult.
Public methodIfEmpty Obsolete.
Returns nonEmptyResult if value is null or empty, else returns emptyResult.
Public methodIfImage Obsolete.
Returns isImage value if file is image.
Public methodStatic memberLoadTransformation
Loads the transformation template. Supports the following formats of transformation name: [Some text with macros] - Inline transformation cms.user.sometransformation - Transformation full name from database ~/SomePath/SomeControl.ascx - Path to transformation user control
Public methodStatic memberLoadTransformationFromPath
Loads the transformation from the given path
Public methodSearchHighlight
Highlight input text with dependence on current search keywords.
Public methodSearchResultUrl
Returns URL for given search result.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also