getData('template'); $actions = \json_decode(\file_get_contents(__DIR__ . '/../../Definitions/actions.json'), true); function renderLeaf(array $leaf, string $parent = null) { $boxes = [ 'first' => ['((', '))'], 'standard' => ['[', ']'], 'if' => ['{', '}'] ]; foreach ($leaf as $key => $e) { $type = $e['id'] === '1005500001' ? 'if' : 'standard'; if ($parent !== null) { echo ' ' . $parent . '-->' . $parent . ':' . $key . ':' . $e['id'] . $boxes[$type][0] . $e['id'] . $boxes[$type][1] . ";\n"; } else { echo ' ' . $key . ':' . $e['id'] . $boxes['first'][0] . $e['id'] . $boxes['first'][1] . ";\n"; } renderLeaf($e['children'], ($parent === null ? '' : $parent . ':') . $key . ':' . $e['id']); } } function renderElements(array $leaf, array $actions) { foreach ($leaf as $e) { $name = View::html($actions[(int) $e['id']]['name']); echo <<
{$name}
NEWDOC; renderElements($e['children'], $actions); } } echo $this->getData('nav')->render(); ?> schema)) : $level = $template->schema; ?>
getHtml('Workflow'); ?>
graph TD;
getHtml('Active'); ?>
getHtml('Available'); ?>
printHtml($action['name']); ?>
printHtml($action['description'][$this->request->getLanguage()]); ?>