146 $filterOut = array();
148 if ($filter !==
null && ($filter instanceof Translate\
Filter || $filter instanceof \Traversable))
150 foreach ($filter as $key => $value)
152 if (empty($value) && $value !==
'0')
159 $filterOut[
'=%PATH.PATH'] = $value.
'%';
161 elseif ($key ===
'fileId')
163 $filterOut[
'=FILE_ID'] = $value;
165 elseif ($key ===
'pathId')
167 $filterOut[
'=PATH_ID'] = $value;
169 elseif ($key ===
'langId')
171 $filterOut[
'=LANG_ID'] = $value;
173 elseif ($key ===
'indexedTime')
175 $filterOut[
'<FILE.INDEXED_TIME'] = $value;
179 if (static::getEntity()->hasField(trim($key,
'<>!=@~%*')))
181 $filterOut[$key] = $value;