wiki:RenderMethods

Non-AJAX HTML Rendering

Functions that perform server side HTML rendering are stored in include/htmlrender.inc.php. They are named "render_foo()".

Input

Input to the functions is through two variables: $requestData and $requestParams.

$requestData is generally the return contents of a call to a request_foo() function. It is an associative array, and the keys present depend on the request_foo() function and what it returns.

$requestParams is an associative array of request parameters (derived from $_GET and $_POST) that can be used to regenerate links. The values can be overwritten in link generation to alter what the links will do, see NonAJAXHelpers for details on how to use these functions.

Output

Functions should return a string which is the fully rendered HTML that goes inside the content div that gets returned to the client.

Functions may use output buffering and echo statements to speed up the rendering.