Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:formatting_scripts [2025/01/21 04:32]
optrix created
functions:formatting_scripts [2025/01/21 05:39] (current)
optrix
Line 4: Line 4:
  
 **Pre-execution** formatting scripts usually set up the request to include extra parameters that control the style of the output (for example, adding a 'format' parameter to the request). **Pre-execution** formatting scripts usually set up the request to include extra parameters that control the style of the output (for example, adding a 'format' parameter to the request).
 +
 +Pre-execution scripts are installed into the function directory and named **pre_//format//.php** (for example, **pre_xml.php** would be the pre-execution script for XML output).
  
 **Post-execution** formatting scripts usually take the native format of output (for example, JSON) and convert it into other formats, such as CSV or XML. **Post-execution** formatting scripts usually take the native format of output (for example, JSON) and convert it into other formats, such as CSV or XML.
 +
 +These scripts are installed into the function director and named **//format//.php** (for example, **xml.php** would be the post-execution script for XML output).
 +
 +