Skip to content
Snippets Groups Projects
Commit c57308ef authored by Dorian Merz's avatar Dorian Merz Committed by Robert Lange
Browse files

refs #20642 [fid] restructure get-it-box for DDS

* change visibility of helper functions
* allow for ALL keyword in sources list
parent 957a58c5
Branches
Tags
No related merge requests found
...@@ -209,7 +209,7 @@ class GetIt extends AbstractHelper ...@@ -209,7 +209,7 @@ class GetIt extends AbstractHelper
* *
* @return array * @return array
*/ */
private function _getSourceIds($value) protected function _getSourceIds($value)
{ {
$sids = $this->config->SourceIds; $sids = $this->config->SourceIds;
return isset($sids->$value) ? explode(',', $sids->$value) : []; return isset($sids->$value) ? explode(',', $sids->$value) : [];
...@@ -222,7 +222,7 @@ class GetIt extends AbstractHelper ...@@ -222,7 +222,7 @@ class GetIt extends AbstractHelper
* *
* @return string * @return string
*/ */
private function _getNonSourceIds($value) protected function _getNonSourceIds($value)
{ {
$sids = $this->config->NonSourceIds; $sids = $this->config->NonSourceIds;
return $sids->$value ?? ''; return $sids->$value ?? '';
...@@ -253,7 +253,8 @@ class GetIt extends AbstractHelper ...@@ -253,7 +253,8 @@ class GetIt extends AbstractHelper
// let specific functions override defaults where necessary // let specific functions override defaults where necessary
foreach ($this->sids as $sid_config) { foreach ($this->sids as $sid_config) {
if (in_array($this->sid, $sid = $this->_getSourceIds($sid_config))) { $sid = $this->_getSourceIds($sid_config);
if (current($sid) === 'ALL' || in_array($this->sid, $sid)) {
$foo = 'get_config_' . $sid_config; $foo = 'get_config_' . $sid_config;
$this->$foo( $this->$foo(
$accordeonColor, $accordeonColor,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment