Finds the filter name by filter id

@param int $filterId
@return string
@throws SanitizationException
348644
private function findFilter($filterId) {
        foreach(filter_list() as $filterName) {
            if(filter_id($filterName)===$filterId) {
                return $filterName;
            }
        }
        
        throw new \Exception('Could not find filter '.$filterId);
    }
353087
private function applyFilter(Filter $filter)
    {
        list($filtered, $errors) = $filter->apply($this->value);
        if (count($errors) === 0) {
            return $filtered;
        }

        foreach ($errors as $error) {
            $this->paramErrors->append($this->paramName, $error);
        }

        return null;
    }
1132082
public function deleteFromId( $MacFilterId){
        $rest = $this->getService( self::API_WIFI_MAC_FILTER . $MacFilterId);
        $rest->DELETE();

        return $rest->getSuccess();
    }
493682
public function sanitizeEventFilter($filters)
    {
        if (!is_array($filters)) {
            throw new \InvalidArgumentException('filters parameter must be an array');
        }

        if (!isset($filters['search'])) {
            $filters['search'] = '';
        }

        if (!isset($filters['includeEvents'])) {
            $filters['includeEvents'] = [];
        }

        if (!isset($filters['excludeEvents'])) {
            $filters['excludeEvents'] = [];
        }

        return $filters;
    }
1160768
public function getFilterClassName($name)
    {
        return isset($this->_attributes['filters'][$name])
            ? $this->_attributes['filters'][$name]
            : null;
    }
292280
protected function get_string_filters($context) {
        if (!isset($this->stringfilters[$context->id])) {
            $this->load_filters($context);
        }
        return $this->stringfilters[$context->id];
    }
964811
public static String buildFilterID(String application_name, FilterType filter_type, String filter_name) {
        return application_name + ":" + filter_name + ":" + filter_type.toString();
    }
1211725
private static function _getFileNameForCacheId($cacheId)
    {
        $cacheId = preg_replace('#[^a-zA-Z0-9_-]#', '_', $cacheId);
        if (strlen($cacheId) > 50) {
            $cacheId = substr($cacheId, 0, 50).md5($cacheId);
        }
        return "cache/view/".self::CACHE_VERSION.'-'.$cacheId;
    }
777089
public function getContentName($contentId): string
    {
        try {
            $versionInfo = $this->loadVersionInfo($contentId);

            return $versionInfo->getName() ?? '';
        } catch (Throwable $t) {
            return '';
        }
    }
394614
public function getFilterClassName($name)
    {
        return isset($this->odmOptions['filters'][$name])
            ? $this->odmOptions['filters'][$name]['class']
            : null;
    }
295702
public function useFilter($filterString, $filterName = '')
    {
        $filterName = $filterName === '' ? $filterString : $filterName;

        $nameWasPassedAndFilterIsAllreadySet = $filterName !== '' && $this->queryToBuild->getFilterQuery($filterName) !== null;
        if($nameWasPassedAndFilterIsAllreadySet) {
            return $this;
        }
        $this->queryToBuild->addFilterQuery(['key' => $filterName, 'query' => $filterString]);
        return $this;
    }
1074350
public function getFilter($filtername) {
        $filter = null;
        if (!is_null($this->filters) && isset($this->filters[$filtername])) {
            $filter = $this->filters[$filtername];
        }
        return $filter;
    }
350604
protected function cleanName(string $name) : string
    {
        if ('._ids' === substr($name, -5)) {
            $name = substr($name, 0, -5);
        }

        if (false !== strpos($name, '.')) {
            $fieldElements = explode('.', $name);
            $name = false !== end($fieldElements) ? end($fieldElements) : $name;
        }

        if (substr($name, -3) === '_id') {
            $name = substr($name, 0, -3);
        }
        $name = Inflector::humanize(Inflector::underscore($name));

        return $name;
    }
67468
public static function cleanId($id)
    {
        // Remove non allowed characters
        $id = preg_replace('/[^A-Za-z0-9\-\_\/~]/', '', $id);

        // Replace multiple slashes
        $id = preg_replace('/\/+/', '/', $id);

        return trim($id, '/');
    }
577513
private function filterStore($storeId = null)
    {
        if ($storeId !== null) {
            if (!is_array($storeId)) {
                $storeId = explode(',', $storeId);
            }
            $this->orderCollection->addFieldToFilter('store_id', ['in' => $storeId]);
        }

        return $this;
    }
1183417
protected static function filter(
        int $filterId,
        $options = null,
        int $errorCode = ErrorCodes::INVALID_VALUE,
        string $messageTemplate = Messages::INVALID_VALUE,
        RuleInterface $next = null
    ): RuleInterface {
        $filterRule = new Filter($filterId, $options, $errorCode, $messageTemplate);

        return $next === null ? $filterRule : new AndOperator($filterRule, $next);
    }
1214983
public function get($name = '', $sanitize = true)
    {
        $queryString = $this->uri()->getQuery();

        if ($queryString instanceof QueryString && $queryString->has($name)) {
            return $queryString->get($name);
        }

        return $this->resolveValue($name, $_GET, $sanitize);
    }