|
@@ 99-106 (lines=8) @@
|
| 96 |
|
$subscriberAreasToTitles = []; |
| 97 |
|
$subscriberAreasToCategories = []; |
| 98 |
|
$subscriberAreasAndCategories = []; |
| 99 |
|
foreach ($subscriberAreas as $subscriberArea) { |
| 100 |
|
if (isset($nonPersistedSubscribers[$subscriberArea])) { |
| 101 |
|
$subscriberAreasToTitles[$subscriberArea] = $nonPersistedSubscribers[$subscriberArea]->getTitle(); |
| 102 |
|
$category = $nonPersistedSubscribers[$subscriberArea]->getCategory(); |
| 103 |
|
} |
| 104 |
|
$subscriberAreasToCategories[$subscriberArea] = $category; |
| 105 |
|
$subscriberAreasAndCategories[$category][] = $subscriberArea; |
| 106 |
|
} |
| 107 |
|
$templateParameters['subscriberAreasToTitles'] = $subscriberAreasToTitles; |
| 108 |
|
$templateParameters['subscriberAreasToCategories'] = $subscriberAreasToCategories; |
| 109 |
|
$templateParameters['subscriberAreasAndCategories'] = $subscriberAreasAndCategories; |
|
@@ 218-225 (lines=8) @@
|
| 215 |
|
$hookproviderAreasToTitles = []; // and get the titles |
| 216 |
|
$hookproviderAreasToCategories = []; // and get the categories |
| 217 |
|
$hookproviderAreasAndCategories = []; // and build array with category => areas |
| 218 |
|
foreach ($hookproviderAreas as $hookproviderArea) { |
| 219 |
|
if (isset($nonPersistedProviders[$hookproviderArea])) { |
| 220 |
|
$hookproviderAreasToTitles[$hookproviderArea] = $nonPersistedProviders[$hookproviderArea]->getTitle(); |
| 221 |
|
$category = $nonPersistedProviders[$hookproviderArea]->getCategory(); |
| 222 |
|
} |
| 223 |
|
$hookproviderAreasToCategories[$hookproviderArea] = $category; |
| 224 |
|
$hookproviderAreasAndCategories[$category][] = $hookproviderArea; |
| 225 |
|
} |
| 226 |
|
$hookproviders[$i]['areasToTitles'] = $hookproviderAreasToTitles; |
| 227 |
|
$hookproviders[$i]['areasToCategories'] = $hookproviderAreasToCategories; |
| 228 |
|
$hookproviders[$i]['areasAndCategories'] = $hookproviderAreasAndCategories; |