admin/jqadm/src/Admin/JQAdm/Base.php
protected function getCriteriaConditions( array $params )
	{
		$expr = [];

		if( isset( $params['key'] ) )
		{
			foreach( (array) $params['key'] as $idx => $key )
			{
				if( $key != '' && isset( $params['op'][$idx] ) && $params['op'][$idx] != ''
					&& isset( $params['val'][$idx] ) && $params['val'][$idx] != ''
				) {
					$expr[] = [$params['op'][$idx] => [$key => $params['val'][$idx]]];
				}
			}

			if( !empty( $expr ) ) {
				$expr = ['&&' => $expr];
			}
		}

		return $expr;
	}
protected function getCriteriaConditions( array $params )
	{
		$expr = [];

		if( isset( $params['key'] ) )
		{
			foreach( (array) $params['key'] as $idx => $key )
			{
				if( $key != '' && isset( $params['op'][$idx] ) && $params['op'][$idx] != ''
					&& isset( $params['val'][$idx] ) && $params['val'][$idx] != ''
				) {
					$expr[] = [$params['op'][$idx] => [$key => $params['val'][$idx]]];
				}
			}

			if( !empty( $expr ) ) {
				$expr = ['&&' => $expr];
			}
		}

		return $expr;
	}
protected function getCriteriaConditions ( array $ params ) { $ expr = [ ] ; if ( isset ( $ params [ 'key' ] ) ) { foreach ( ( array ) $ params [ 'key' ] as $ idx => $ key ) { if ( $ key != '' && isset ( $ params [ 'op' ] [ $ idx ] ) && $ params [ 'op' ] [ $ idx ] != '' && isset ( $ params [ 'val' ] [ $ idx ] ) && $ params [ 'val' ] [ $ idx ] != '' ) { $ expr [ ] = [ $ params [ 'op' ] [ $ idx ] => [ $ key => $ params [ 'val' ] [ $ idx ] ] ] ; } } if ( ! empty ( $ expr ) ) { $ expr = [ '&&' => $ expr ] ; } } return $ expr ; }
Returns the array of criteria conditions based on the given parameters

@param array $params List of criteria data with condition, sorting and paging
@return array Multi-dimensional associative list of criteria conditions
Returns the array of criteria conditions based on the given parameters