Example #1
0
function getHeader($xmlAttribute, $value = NULL)
{
    switch ($xmlAttribute) {
        case "category":
            renderXml($xmlAttribute);
            break;
        case "category/type":
            renderXml($xmlAttribute, $value);
            break;
    }
}
Example #2
0
function actionXml($ak, $table, $uuid, $xsltemplate, $cache = TRUE)
{
    $md_record = new MdRecord();
    $md_record->setTableMode($table);
    $record = $md_record->getMd('uuid', $uuid);
    $xml = isset($record['md']['PXML']) ? $record['md']['PXML'] : '';
    if ($cache === FALSE && $xml != '') {
        // xml z dat
        $xml = $md_record->getMdXmlData($uuid, $xsltemplate);
    }
    renderXml($ak, $xml);
}