src/GenericFilter.php
public function clear( $what = [] ) {

		$defaults = [
			'criteria'  => [],
			'offset'    => 0,
			'limit'     => 0,
			'orderby'   => [],
		];

		$what = (array) $what;

		if( empty($what) )
			$what = array_keys($defaults);

		foreach( $what as $k ) {
			$this->$k = $defaults[$k];
		}

		return $this;

	}
public function clear( $what = [] ) {

		$defaults = [
			'criteria'  => [],
			'offset'    => 0,
			'limit'     => 0,
			'orderby'   => [],
		];

		$what = (array) $what;

		if( empty($what) )
			$what = array_keys($defaults);

		foreach( $what as $k ) {
			$this->$k = $defaults[$k];
		}

		return $this;

	}
public function clear ( $ what = [ ] ) { $ defaults = [ 'criteria' => [ ] , 'offset' => 0 , 'limit' => 0 , 'orderby' => [ ] , ] ; $ what = ( array ) $ what ; if ( empty ( $ what ) ) $ what = array_keys ( $ defaults ) ; foreach ( $ what as $ k ) { $ this -> $ k = $ defaults [ $ k ] ; } return $ this ; }
Remove all existing criteria from the filter.
@return self
Remove all existing criteria from the filter .