|
22 | 22 |
|
23 | 23 |
|
24 | 24 | foreach (getActions($dimensions) as list($dimension, $subdimensions, $element)) { |
25 | | - if ($dimension != $old_dimension) { |
26 | | - echo "<h1>Dimension $dimension</h1>"; |
27 | | - $old_dimension = $dimension; |
28 | | - } |
| 25 | + if ($dimension != $old_dimension) { |
| 26 | + echo "<h1>Dimension $dimension</h1>"; |
| 27 | + $old_dimension = $dimension; |
| 28 | + } |
29 | 29 |
|
30 | | - $mappingExists[$subdimension] = array(); |
31 | | - $noMappingExists[$subdimension] = array(); |
32 | | - echo "<h2>Sub-Dimension $subdimension</h2>"; |
| 30 | + $mappingExists[$subdimension] = array(); |
| 31 | + $noMappingExists[$subdimension] = array(); |
| 32 | + echo "<h2>Sub-Dimension $subdimension</h2>"; |
33 | 33 |
|
34 | | - echo "<h3 style='color:green;'>With SAMM2 Mapping</h3>"; |
35 | | - for ($i = 1; $i <= 4; $i++) { |
36 | | - $tableContent .= "<td><ul>"; |
37 | | - foreach ($element as $activityName => $content) { |
38 | | - if (array_key_exists("samm2", $content) && !preg_match("/TODO/i", $content["samm2"])) { |
39 | | - $content2 = getContentForLevelFromSubdimensions($i, $content, $activityName); |
| 34 | + echo "<h3 style='color:green;'>With SAMM2 Mapping</h3>"; |
| 35 | + for ($i = 1; $i <= 4; $i++) { |
| 36 | + $tableContent .= "<td><ul>"; |
| 37 | + foreach ($element as $activityName => $content) { |
| 38 | + if (array_key_exists("samm2", $content) && !preg_match("/TODO/i", $content["samm2"])) { |
| 39 | + $content2 = getContentForLevelFromSubdimensions($i, $content, $activityName); |
40 | 40 |
|
41 | | - if ($content2 != "") { |
42 | | - printDetail($dimension, $subdimension, $activityName, $dimensions, true); |
43 | | - $mappingExists[$subdimension][$content["samm2"]][$activityName] = $content; |
44 | | - } |
| 41 | + if ($content2 != "") { |
| 42 | + printDetail($dimension, $subdimension, $activityName, $dimensions, true); |
| 43 | + $mappingExists[$subdimension][$content["samm2"]][$activityName] = $content; |
45 | 44 | } |
46 | 45 | } |
47 | 46 | } |
| 47 | + } |
48 | 48 |
|
49 | | - echo "<h3 style='color:red;'>Without SAMM2 Mapping</h3>"; |
50 | | - for ($i = 1; $i <= 4; $i++) { |
51 | | - $tableContent .= "<td><ul>"; |
52 | | - foreach ($element as $activityName => $content) { |
53 | | - if (!array_key_exists("samm2", $content) || preg_match("/TODO/i", $content["samm2"])) { |
54 | | - $content2 = getContentForLevelFromSubdimensions($i, $content, $activityName); |
| 49 | + echo "<h3 style='color:red;'>Without SAMM2 Mapping</h3>"; |
| 50 | + for ($i = 1; $i <= 4; $i++) { |
| 51 | + $tableContent .= "<td><ul>"; |
| 52 | + foreach ($element as $activityName => $content) { |
| 53 | + if (!array_key_exists("samm2", $content) || preg_match("/TODO/i", $content["samm2"])) { |
| 54 | + $content2 = getContentForLevelFromSubdimensions($i, $content, $activityName); |
55 | 55 |
|
56 | | - if ($content2 != "") { |
57 | | - printDetail($dimension, $subdimension, $activityName, $dimensions, true); |
58 | | - $content["name"] = $activityName; |
59 | | - $noMappingExists[$subdimension][$content["samm2"]][$activityName] = $content; |
60 | | - } |
| 56 | + if ($content2 != "") { |
| 57 | + printDetail($dimension, $subdimension, $activityName, $dimensions, true); |
| 58 | + $content["name"] = $activityName; |
| 59 | + $noMappingExists[$subdimension][$content["samm2"]][$activityName] = $content; |
61 | 60 | } |
62 | 61 | } |
63 | 62 | } |
64 | 63 | } |
65 | | - foreach ($mappingExists as $dimension => $category) { |
66 | | - //var_dump($mappingExists); |
67 | | - echo "<h1>".$dimension ."</h1>"; |
68 | | - foreach ($category as $category => $content) { |
69 | | - //var_dump($content);exit; |
70 | | - echo $category . " ".count($content) . " "; |
71 | | - foreach ($content as $activityName => $content2) { |
72 | | - echo "$activityName" . " /"; } |
73 | | - echo "<br>"; |
74 | | - } |
| 64 | +} |
| 65 | +foreach ($mappingExists as $dimension => $category) { |
| 66 | + //var_dump($mappingExists); |
| 67 | + echo "<h1>".$dimension ."</h1>"; |
| 68 | + foreach ($category as $category => $content) { |
| 69 | + //var_dump($content);exit; |
| 70 | + echo $category . " ".count($content) . " "; |
| 71 | + foreach ($content as $activityName => $content2) { |
| 72 | + echo "$activityName" . " /"; } |
| 73 | + echo "<br>"; |
75 | 74 | } |
| 75 | +} |
76 | 76 |
|
77 | | - //var_dump($noMappingExists); |
78 | | - |
79 | | - |
80 | | - |
| 77 | +//var_dump($noMappingExists); |
0 commit comments