30 $configuration = Configuration::getInstance($moduleId);
32 $value = $configuration->get(static::SETTINGS_USER_FIELD_KEY);
35 && isset($value[static::SETTINGS_ACCESS_CLASS_KEY])
37 && is_a($value[static::SETTINGS_ACCESS_CLASS_KEY], self::class,
true))
39 return new $value[static::SETTINGS_ACCESS_CLASS_KEY](
$userId);
86 $filterEntityIds = [];
87 foreach($filter as $name => $value)
89 if(strpos($name,
'ENTITY_ID') !==
false)
91 if($name ===
'ENTITY_ID')
95 $filterEntityIds = $value;
99 $filterEntityIds = [$value];
103 unset($filter[$name]);
107 if(empty($filterEntityIds))
109 $filterEntityIds = $availableEntityIds;
113 foreach($filterEntityIds as $key => $entityId)
115 if(!in_array($entityId, $availableEntityIds,
true))
117 unset($filterEntityIds[$key]);
122 if(empty($filterEntityIds))
127 $filter[
'=ENTITY_ID'] = $filterEntityIds;