| @@ 64-76 (lines=13) @@ | ||
| 61 | /** |
|
| 62 | * @return array |
|
| 63 | */ |
|
| 64 | public function get_installed_plugins_by_region() |
|
| 65 | { |
|
| 66 | $plugins = array(); |
|
| 67 | /* We retrieve all the active plugins. */ |
|
| 68 | $result = api_get_settings('Plugins'); |
|
| 69 | if (!empty($result)) { |
|
| 70 | foreach ($result as $row) { |
|
| 71 | $plugins[$row['variable']][] = $row['selected_value']; |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | return $plugins; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * @return array |
|
| @@ 207-218 (lines=12) @@ | ||
| 204 | * |
|
| 205 | * @return array |
|
| 206 | */ |
|
| 207 | public function get_areas_by_plugin($pluginName) |
|
| 208 | { |
|
| 209 | $result = api_get_settings('Plugins'); |
|
| 210 | $areas = array(); |
|
| 211 | foreach ($result as $row) { |
|
| 212 | if ($pluginName == $row['selected_value']) { |
|
| 213 | $areas[] = $row['variable']; |
|
| 214 | } |
|
| 215 | } |
|
| 216 | ||
| 217 | return $areas; |
|
| 218 | } |
|
| 219 | ||
| 220 | /** |
|
| 221 | * @param string $location |
|