Impact analysis: still an alpha version.

SVN:trunk[3559]
This commit is contained in:
Denis Flaven
2015-04-24 07:42:50 +00:00
parent fedde33be1
commit aa93fde347
7 changed files with 1112 additions and 217 deletions

View File

@@ -1739,6 +1739,12 @@ EOF
$sPageFormat = utils::ReadParam('p', 'A4');
$sPageOrientation = utils::ReadParam('o', 'L');
$sTitle = utils::ReadParam('title', '', false, 'raw_data');
$sPositions = utils::ReadParam('positions', null, false, 'raw_data');
$aPositions = null;
if ($sPositions != null)
{
$aPositions = json_decode($sPositions, true);
}
$oObj = MetaModel::GetObject($sClass, $id);
$iMaxRecursionDepth = MetaModel::GetConfig()->Get('relations_max_depth', 20);
@@ -1755,6 +1761,10 @@ EOF
$oGraph = DisplayableGraph::FromRelationGraph($oRelGraph, $iGroupingThreshold, ($sDirection == 'down'));
$oGraph->InitFromGraphviz();
if ($aPositions != null)
{
$oGraph->UpdatePositions($aPositions);
}
$oGraph->RenderAsPDF($oPage, $sTitle, $sPageFormat, $sPageOrientation);
$oPage->SetContentType('application/pdf');