< Back
Print

Format with PHP Code (deprecated)

Summary

The format “Format with PHP Code” will send the value of the attribute after running the PHP code to the target system.

Example

Insert the attribute and select the function “Format with PHP Code” in the dropdown menu.

Click on the marked button for the extended settings, a new window opens.
Here you set your value that should be transfered to your system.

Value Description Example
Format the value and return it using return. You can access it using $value. Enter your PHP code return time plus 1 week
Format result value using this plugin This plugin will be executed if it is required by a condition.
Transform language-dependent attributes into non-language-dependent attributes (first source language from the language mapping will be exported) or vice versa Select your setting Setting from the attribute

Results on the example from the Excel Connector

Details/limitations

You can use the function “sc_alert(…$arrVariables)” to debug the given variables. These will appear as debug messages in the Job Pilot export.

The format was marked as deprecated because Contentserv intends to remove the support of entered PHP code entirely due to security reasons. It will stay in the SAWSConnector as long as possible but it is recommended to migrate the entered code to custom developed format plugins. The SAWSConnector fully supports format plugins that lie in project-side modules.

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents