method filterFilters documentation in bbn\Db\Languages\Sql

Retrieve an array of specific filters among the existing ones.

function(array $cfg, $field, $operator = NULL) { if (isset($cfg['filters'])) { $f = function ($cond, &$res = []) use (&$f, $field, $operator) { foreach ($cond as $c){ if (isset($c['conditions'])) { $f($c['conditions'], $res); } elseif (($c['field'] === $field) && (!$operator || ($operator === $c['operator']))) { $res[] = $c; } } return $res; }; return isset($cfg['filters']['conditions']) ? $f($cfg['filters']['conditions']) : []; } return null; }

Retrieve an array of specific filters among the existing ones. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.