function forena_block_xml in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.module \forena_block_xml()
- 6 forena.module \forena_block_xml()
- 7.5 forena.module \forena_block_xml()
- 7 forena.common.inc \forena_block_xml()
- 7.2 forena.common.inc \forena_block_xml()
- 7.3 forena.common.inc \forena_block_xml()
- 7.4 forena.module \forena_block_xml()
Send report block XML Enter description here ...
Parameters
string $block_name: Name of data block.
File
- ./
forena.common.inc, line 259 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_block_xml($block_name = '') {
$block_name = str_replace('.', '/', $block_name);
$parms = $_GET;
unset($parms['q']);
$xml = FrxAPI::RepoMan()
->data($block_name, $parms);
if (is_object($xml)) {
header('Content-Type: text/xml');
print $xml
->asXML();
}
}