Skip to content

Commit

Permalink
refs #4633 update metadata API to include information whether a repor…
Browse files Browse the repository at this point in the history
…t is linked to a segment
  • Loading branch information
tsteur committed Jan 28, 2015
1 parent 9432d50 commit 99e9a6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/Plugin/Report.php
Expand Up @@ -535,6 +535,14 @@ protected function buildReportMetadata()

if (!empty($this->dimension)) {
$report['dimension'] = $this->dimension->getName();

$segments = $this->dimension->getSegments();
if (!empty($segments)) {
$report['segments'] = array();
foreach ($segments as $segment) {
$report['segments'][] = $segment->getSegment();
}
}
}

if (!empty($this->documentation)) {
Expand Down

0 comments on commit 99e9a6d

Please sign in to comment.