The TransformationHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
TransformationHelper |
Methods
Name | Description | |
---|---|---|
AddCurrentCategoryParameter |
Appends current category ID to given url.
| |
EnsureMaximumLineLength |
Limits line length of the given plain text.
| |
EnsureValueHTMLEncode(Object) |
Returns HTML encoded value if value is string and it should be encoded(it depends on value of CMSHTMLEncodeEval key in configuration file).
| |
EnsureValueHTMLEncode ReturnType (Object) |
Returns HTML encoded value if value is string and it should be encoded(it depends on value of CMSHTMLEncodeEval key in configuration file).
| |
Equals | (Inherited from Object.) | |
EvalCDATA(Object) |
Escapes CDATA value.
| |
EvalCDATA(Object, Boolean) |
Escapes CDATA value.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FormatDate |
Format date without time part.
| |
FormatDateTime |
Format date time.
| |
GetAbsoluteUrl(String) |
Returns absolute URL from relative path.
| |
GetAbsoluteUrl(String, Int32) |
Returns absolute URL from relative path.
| |
GetAbsoluteUrl(String, Object) |
Returns absolute URL from relative path.
| |
GetAge |
Returns age according to DOB. If DOB is not set, returns unknownAge string.
| |
GetAtomDateTime |
Gets time according to RFC 3339 for Atom feeds.
| |
GetAttachmentIcon |
Returns HTML markup representing icon.
| |
GetAttachmentUrl |
Returns URL of the attachment.
| |
GetBadgeImage |
Returns badge image tag.
| |
GetBadgeName |
Returns badge name.
| |
GetBlogCommentUrl |
Returns URL of the blog comment document.
| |
GetBlogCommentUrlForFeed |
Returns URL of the blog comment document with feed parameter.
| |
GetCurrentDateTimeString |
Returns date time string according to user or current site time zone.
| |
GetCustomDateTime |
Returns date time with dependence on selected time zone.
| |
GetDate |
Returns date from the provided date-time value.
| |
GetDateTime(Control, DateTime) |
Returns date time with dependence on current ITimeZone manager time zone settings.
| |
GetDateTime(Control, Object) |
Returns date time with dependence on current ITimeZone manager time zone settings.
| |
GetDateTimeString |
Returns string representation of date time with dependence on current ITimeZone manager
time zone settings.
| |
GetDocumentCssClass |
Gets document CSS class comparing the current document node alias path.
| |
GetDocumentLink |
Returns a complete HTML code of the link to the currently rendered document.
| |
GetDocumentUrl(Object) |
Returns URL of the given document.
| |
GetDocumentUrl(Object, Object) |
Returns URL of the given document (for use with document selector).
| |
GetDocumentUrl(Object, Object, Object, String) |
Returns URL of the currently rendered document.
| |
GetDocumentUrlForFeed |
Returns URL of the currently rendered document with feed parameter.
| |
GetEditableImage |
Returns a complete HTML code of the image that is specified by editable image ID.
| |
GetEditableImageUrl |
Gets the editable image value.
| |
GetEventDateString |
Returns string representation of event time with dependence on current ITimeZone manager
time zone settings.
| |
GetFeedName |
Returns feed name. If feed name is defined, than returns it. Otherwise returns instance GUID.
| |
GetFileIcon |
Returns HTML markup representing icon.
| |
GetFileUrl(Object, Object) |
Returns URL of the attachment.
| |
GetFileUrl(Object, String) |
Returns URL of the attachment.
| |
GetFileUrlFromAlias |
Returns URL of the attachment.
| |
GetForumPostUrl |
Returns URL of the specified forum post.
| |
GetForumPostUrlForFeed |
Returns URL of the specified forum post with feed parameter.
| |
GetGender |
Returns gender of the user.
| |
GetGroupAvatarImage(Object, Int32, Object) |
Returns group avatar image tag, if avatar is not defined returns default group if is defined.
| |
GetGroupAvatarImage(Object, Int32, Int32, Int32, Object) |
Returns group avatar image tag, if avatar is not defined returns default group if is defined.
| |
GetGroupAvatarImageByGUID |
Returns group avatar image tag, if avatar is not defined returns default group if is defined.
| |
GetGroupProfileUrl(Object) |
Returns group profile URL.
| |
GetGroupProfileUrl(Object, String) |
Returns group profile URL.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetImage(Object, Object, Int32) |
Returns a complete HTML code of the image.
| |
GetImage(Object, Object, Int32, Int32) |
Returns a complete HTML code of the image.
| |
GetImage(Object, Object, Object, Object, Object, Object) |
Returns a complete HTML code of the image.
| |
GetImageByUrl(Object, Int32) |
Returns a complete HTML code of the image that is specified by the given url.
| |
GetImageByUrl(Object, Int32, Int32) |
Returns a complete HTML code of the image that is specified by the given url.
| |
GetImageByUrl(Object, Object, Object, Object, Object) |
Returns a complete HTML code of the image that is specified by the given url.
| |
GetMediaFileUrl |
Returns URL of the specified media file.
| |
GetMediaFileUrlForFeed |
Returns URL of the specified media file with feed parameter.
| |
GetMemberProfileUrl(Object) |
Returns member profile URL.
| |
GetMemberProfileUrl(Object, String) |
Returns member profile URL.
| |
GetMessageBoardUrl |
Returns URL of the message board document.
| |
GetMessageBoardUrlForFeed |
Returns URL of the message board document with feed parameter.
| |
GetMetaFileUrl |
Returns URL of the specified meta file.
| |
GetRSSDateTime |
Gets time according to RFC 822 for RSS feeds.
| |
GetSearchedContent |
Returns content parsed as XML if required and removes dynamic controls.
| |
GetSearchImageUrl |
Returns URL to current search result item.
| |
GetSearchValue |
Returns column value for current search result item.
| |
GetSharePointFileUrl |
Gets URL for accessing file on SharePoint server.
| |
GetSiteDateTime |
Returns site date time according to site time zone.
| |
GetSitemapItem |
Returns sitemap XML element for specified type (loc, lastmod, changefreq, priority).
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUIImageUrl(String, Page) |
Gets UI image resolved path.
| |
GetUIImageUrl(String, Boolean, Page) |
Gets UI image resolved path.
| |
GetUIImageUrl(String, Boolean, Boolean, Page) |
Gets UI image path.
| |
GetUrl(Object, Object) |
Returns URL for the specified aliasPath and urlPath (preferable).
| |
GetUrl(Object, Object, Object) |
Returns URL for the specified aliasPath and urlPath (preferable).
| |
GetUserAvatarImage |
Returns avatar image tag, if avatar is not defined returns gender depend avatar or user default avatar if is defined.
| |
GetUserAvatarImageByGUID |
Returns user avatar image.
| |
GetUserAvatarImageForUser |
Returns avatar image tag, if avatar is not defined returns gender depend avatar or user default avatar if is defined.
| |
GetUserAvatarImageUrl(Object, Object, Int32, Int32, Int32) |
Returns avatar or gravatar image url, if it is not defined returns gender dependent avatar or user default avatar.
| |
GetUserAvatarImageUrl(Object, Object, Object, Int32, Int32, Int32) |
Returns avatar or gravatar image url, if it is not defined returns gender dependent avatar or user default avatar.
| |
GetUserDateTime |
Returns current user date time DateTime according to user time zone.
| |
GetUserFullName |
Returns user full name.
| |
GetUserProfileURL(Object) |
Returns user profile URL.
| |
GetUserProfileURL(Object, String) |
Returns user profile URL.
| |
HTMLEncode |
Returns encoded text.
| |
If |
If input value is evaluated as True then 'true result' is returned, otherwise 'false result' is returned.
| |
IfCompare |
Transformation "if" statement for guid, int, string, double, boolean, DateTime
The type of compare depends on comparable value (second parameter)
If both values are NULL, method returns false result.
| |
IfDataSourceIsEmpty |
Returns nonEmptyResult if specified data source is null or empty, else returns emptyResult.
| |
IfEmpty |
Returns nonEmptyResult if value is null or empty, else returns emptyResult.
| |
IfImage |
Returns isImage value if file is image.
| |
IsCurrentDocument |
Indicates if the document is current document.
| |
IsDocumentOnSelectedPath |
Indicates if the document is on selected path.
| |
IsImageDocument |
Indicates if the document is image.
| |
JSEncode |
Encodes input string to be used in javascript code and encapsulates it with "'".
| |
LimitLength(Object, Int32, String) |
Limits length of the given plain text.
| |
LimitLength(Object, Int32, String, Boolean) |
Limits length of the given plain text.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveDiscussionMacros |
Remove all types of discussion macros from text.
| |
RemoveDynamicControls |
Remove all dynamic controls macros from text.
| |
ResolveCurrentPath |
Resolves the given alias path, applies the path segment to the given format string {0} for level 0.
| |
ResolveDiscussionMacros |
Resolves the discussion macros.
| |
ResolveMacros |
Resolves the macros in the given text
| |
SearchHighlight |
Highlight input text with dependence on current search keywords.
| |
SearchResultUrl |
Returns URL for current search result.
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelper HelperType .) | |
StripTags |
Remove HTML tags from text.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TrimSitePrefix |
Trims the site prefix from user name(if any prefix found)
|
Extension Methods
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
mCDATARegExp |
Regular expression for CDATA.
|
Properties
Name | Description | |
---|---|---|
CDATARegExp |
URL regular expression.
| |
HTMLEncodeEval |
Gets or sets whether Eval() methods in CMSAbstractTransformation class encodes string values.
|
See Also