SUIT Framework

Scripting Using Integrated Templates

Docs - transform

12/27/2015: SUIT Framework is no longer actively maintained.

Available Since: Rulebox (1.0.0)

Call a function to transform a string.

Syntax [transform ( function="str" param="mixed" ... )]string[/transform]
Parameters
string

The string to be sent as a parameter and be transformed.

function

The name of the function to call.

param

An additional parameter to send to the function. Infinite params can be passed through this method with any name.

Static Variables
delimiter

The string that separates the levels of the variable. (Default: ".")

owner

The object to call the function on. (Default: null. In SUIT for PHP, a global function will be called. In SUIT for Python, nothing will happen.)

Output

The transformed string.

Config Notes
Changelog
  • 1.1.0 - The static variable "delimiter" has been added.
See Also