|
21 | 21 | echo "<h3 style='color:green;'>With SAMM2 Mapping</h3>"; |
22 | 22 | for ($i = 1; $i <= 4; $i++) { |
23 | 23 | $tableContent .= "<td><ul>"; |
24 | | - foreach ($element as $elementName => $content) { |
| 24 | + foreach ($element as $activityName => $content) { |
25 | 25 | if(array_key_exists("samm2", $content) && !preg_match("/TODO/i", $content["samm2"])) { |
26 | | - $content2 = getContentForLevelFromSubdimensions($i, $content, $elementName); |
| 26 | + $content2 = getContentForLevelFromSubdimensions($i, $content, $activityName); |
27 | 27 |
|
28 | 28 | if ($content2 != "") { |
29 | | - printDetail($dimension, $subdimension, $elementName, $dimensions, true); |
30 | | - $mappingExists[$subdimension][$content["samm2"]][$elementName] = $content; |
| 29 | + printDetail($dimension, $subdimension, $activityName, $dimensions, true); |
| 30 | + $mappingExists[$subdimension][$content["samm2"]][$activityName] = $content; |
31 | 31 | } |
32 | 32 | } |
33 | 33 | } |
|
36 | 36 | echo "<h3 style='color:red;'>Without SAMM2 Mapping</h3>"; |
37 | 37 | for ($i = 1; $i <= 4; $i++) { |
38 | 38 | $tableContent .= "<td><ul>"; |
39 | | - foreach ($element as $elementName => $content) { |
| 39 | + foreach ($element as $activityName => $content) { |
40 | 40 | if(!array_key_exists("samm2", $content) || preg_match("/TODO/i", $content["samm2"])) { |
41 | | - $content2 = getContentForLevelFromSubdimensions($i, $content, $elementName); |
| 41 | + $content2 = getContentForLevelFromSubdimensions($i, $content, $activityName); |
42 | 42 |
|
43 | 43 | if ($content2 != "") { |
44 | | - printDetail($dimension, $subdimension, $elementName, $dimensions, true); |
45 | | - $content["name"] = $elementName; |
46 | | - $noMappingExists[$subdimension][$content["samm2"]][$elementName] = $content; |
| 44 | + printDetail($dimension, $subdimension, $activityName, $dimensions, true); |
| 45 | + $content["name"] = $activityName; |
| 46 | + $noMappingExists[$subdimension][$content["samm2"]][$activityName] = $content; |
47 | 47 | } |
48 | 48 | } |
49 | 49 | } |
|
56 | 56 | foreach($category as $category => $content) { |
57 | 57 | //var_dump($content);exit; |
58 | 58 | echo $category . " ".count($content) . " "; |
59 | | - foreach($content as $elementName => $content2){ |
60 | | - echo "$elementName" . " /"; } |
| 59 | + foreach($content as $activityName => $content2){ |
| 60 | + echo "$activityName" . " /"; } |
61 | 61 | echo "<br>"; |
62 | 62 | } |
63 | 63 | } |
|
0 commit comments