private function setArrayToFilterValues($entryArray, $referenceTable = '')
    {
        $filters  = [];
        $refTable = $this->correctTableWithQuotesAsFieldPrefix($referenceTable);
        foreach ($entryArray as $key => $value) {
            if (is_array($value)) {
                $filters[] = $this->setArrayLineArrayToFilter($key, $value, $refTable);
            } elseif (!in_array($value, ['', '%%'])) {
                $filters[] = $this->setArrayLineToFilter($key, $value);
            }
        }
        return implode(' AND ', array_diff($filters, ['']));
    }
private function setArrayToFilterValues($entryArray, $referenceTable = '')
    {
        $filters  = [];
        $refTable = $this->correctTableWithQuotesAsFieldPrefix($referenceTable);
        foreach ($entryArray as $key => $value) {
            if (is_array($value)) {
                $filters[] = $this->setArrayLineArrayToFilter($key, $value, $refTable);
            } elseif (!in_array($value, ['', '%%'])) {
                $filters[] = $this->setArrayLineToFilter($key, $value);
            }
        }
        return implode(' AND ', array_diff($filters, ['']));
    }
private function setArrayToFilterValues ( $ entryArray , $ referenceTable = '' ) { $ filters = [ ] ; $ refTable = $ this -> correctTableWithQuotesAsFieldPrefix ( $ referenceTable ) ; foreach ( $ entryArray as $ key => $ value ) { if ( is_array ( $ value ) ) { $ filters [ ] = $ this -> setArrayLineArrayToFilter ( $ key , $ value , $ refTable ) ; } elseif ( ! in_array ( $ value , [ '' , '%%' ] ) ) { $ filters [ ] = $ this -> setArrayLineToFilter ( $ key , $ value ) ; } } return implode ( ' AND ' , array_diff ( $ filters , [ '' ] ) ) ; }
Transforms an array into usable filters

@param array $entryArray
@param string $referenceTable
@return string
Transforms an array into usable filters