Server Data Formatter & Crypto Add-on Manual

September 28, 2016

Server Data Formatter and Crypto Add-on Referances

In this article you'll find a full overview of each of the 55 included server data formatters in DMXzone Server Data Formatter extension. Also, you can explore all features, included in the DMXzone Server Data Formatter Crypto Add-on. The extension is an add-on for the DMXzone Server Data Formatter so make sure to have it installed in Dreamweaver, along with DMXzone Server Connect.

Features

Collections server data formatting

Join

Returns the values of a collection joined together with the given character.

Top

Returns only a given number of items from the beginning of the collection.

Last

Returns only a given number of items from the end of the collection.

Where

Filters collection on a property value.

Unique

Returns an unique collection.

Group by

Group a collection by a property.

Sort by

Sorts a collection by property.

Randomize

Randomizes all the records in a collection.

Reverse

Reverse a collection.

Count

Returns the number of items in the collection.

Min

Returns the lowest number in the collection.

Max

Returns the highest number in a collection.

Sum

The sum of all numbers in a collection.

Average

Returns the average of all numbers in a collection

Keys

Returns the keys from an object.

Values

Returns the values from an object.

Conditional server data formatting

Starts with

Returns every record in the table where the field's value begins with the value you enter.

Ends with

Returns every record in the table where the field's value ends with the value you enter.

Contains

Returns every record in the table where the field's value contains the value you enter.

Between

Returns every record in the table where the field's value is between the values you enter.

Then

Evaluates a condition and based on its results returns the appropriate value.

Operation

This formatter allows you to do advanced calculations.

Date and Time server data formatting

Format Date

Format a date using one of the many available masks.

Date Add

Add a date part of the day. For example weeks-5 subtracts five weeks from the date.

Date Diff

Returns the difference between two dates. You can also choose a date interval from the drop down menu.

Default server data formatting

Sets the default value if the bindings has no value.

Numeric server data formatting

Floor

Rounds a number downwards to the nearest integer.

Ceil

Rounds a number upwards to the nearest integer.

Round

Rounds a number to the nearest integer.

Abs

Returns the absolute number.

Hex

Converts a hexadecimal string to a number.

Pad Number

Converts a number to a string with leading zeros.

Format Number

Coverts a number into a string with the given number decimals.

Currency

Format a number as currency.

Covert to Number

Converts the input to a number.

Text server data formatting

Convert to String

Convert the input to string.

Convert to Lower Case

Convert a string to lower case. For example: DMXzone Server Data Formater returns dmxzone server data formatter.

Convert to Upper Case

Converts a string to upper case. For example: DMXzone Server Data Formatter returns DMXZONE SERVER DATA FORMATTER.

Camelize String

Camelize a string. for example: DMXzone Server Data Formatter returns DMXzoneServerDataFormatter.

Capitalize String

Capitalize a string. For example: DMXzone Server Data Formatter returns Dmxzone server data formatter.

Dasherize String

Dasherize a string. For example: DMXzone Server Data Formatter returns -d-m-xzone-server-data-formatter.

Humanize String

Humanize a string. For example: DMXzoneServerDataFormatter returns Dmxzone server data formatter.

Slugify String

Slugify a string. For example DMXzone Server Data Formatter returns dmxzone-server-data-formatter.

Underscore String

Underscore a string. For example DMXzone Server Data Formatter returns dmxzone_server_data_formatter.

Titlecase String

Titlecase a string. For example DMXzone Server Data Formatter returns Dmxzone Server Data Formatter.

Camelcase String

Camelcase a string. For example DMXzone Server Data Formatter returns dmxzoneServerDataFormatter.

Replace String

Replace a part of a string with a new value.

Trim String

Trims white space from begin and end of a string.

Split String

Split a string with a character.

Pad String

Smart padding a string to specific length, so you can add padding characters in front, on the back or in the center of the string.

Repeat String

Repeat a string/character number of times.

Sub String

Extract a part of a string (use negative start to get from end).

Strip Tags

Remove HTML tags from a string.

Word Count

Count the number of words used.

Truncate String

Smart truncates a string to a specific length respecting the word boundaries and adding an additional character to indicate more content like ...

DMXzone Server Data Formatter Crypto Add-on

Generate MD5 Hash

Compute MD5 Hash from the input. Тhe salt string is used to make the generated hash more unique and you can enter any text or random value.

Generate SHA1 Hash

Compute SHA1 Hash from the input.

Generate SHA256 Hash

Compute SHA256 Hash from the input.

Generate SHA512 Hash

Compute SHA512 Hash from the input.

Encrypt with password

Encrypt with password any data such as browser cookies, using the Mcrypt algorithm.

Decrypt with password

Decrypt with password any data such as browser cookies, using the Mcrypt algorithm.

Encode Base64

Make sure that you data remains intact and without any modification by encoding it before it was transferred.

Decode Base64

Make sure that you data remains intact and without any modification by decoding it after it was transferred.