public static function applyFilters($query, $filters)
     {
         foreach ($filters as $filter => $value) {
             $method = AnInflector::variablize($filter);
             $value = AnConfig::unbox($value);
             if (!is_array($value) || !is_numeric(key($value))) {
                 $args = array($value);
             } else {
                 $args = $value;
             }
             call_object_method($query, $method, $args);
         }
     }
public static function applyFilters($query, $filters)
     {
         foreach ($filters as $filter => $value) {
             $method = AnInflector::variablize($filter);
             $value = AnConfig::unbox($value);
             if (!is_array($value) || !is_numeric(key($value))) {
                 $args = array($value);
             } else {
                 $args = $value;
             }
             call_object_method($query, $method, $args);
         }
     }
public static function applyFilters ( $ query , $ filters ) { foreach ( $ filters as $ filter => $ value ) { $ method = AnInflector :: variablize ( $ filter ) ; $ value = AnConfig :: unbox ( $ value ) ; if ( ! is_array ( $ value ) || ! is_numeric ( key ( $ value ) ) ) { $ args = array ( $ value ) ; } else { $ args = $ value ; } call_object_method ( $ query , $ method , $ args ) ; } }
Applies an array of fiters to query by calling each filter as method
on the query.

@param AnDomainQuery $query   Query Object
@param array         $filters An array of filter
Applies an array of fiters to query by calling each filter as method on the query .