admin/jqadm/src/Admin/JQAdm/Base.php
protected function initCriteria( \Aimeos\MW\Criteria\Iface $criteria, array $params )
	{
		if( isset( $params['filter'] ) ) {
			$criteria = $this->initCriteriaConditions( $criteria, (array) $params['filter'] );
		}

		if( isset( $params['sort'] ) ) {
			$criteria = $this->initCriteriaSortations( $criteria, (array) $params['sort'] );
		}

		$page = [];
		if( isset( $params['page'] ) ) {
			$page = (array) $params['page'];
		}

		return $this->initCriteriaSlice( $criteria, $page );
	}
protected function initCriteria( \Aimeos\MW\Criteria\Iface $criteria, array $params )
	{
		if( isset( $params['filter'] ) ) {
			$criteria = $this->initCriteriaConditions( $criteria, (array) $params['filter'] );
		}

		if( isset( $params['sort'] ) ) {
			$criteria = $this->initCriteriaSortations( $criteria, (array) $params['sort'] );
		}

		$page = [];
		if( isset( $params['page'] ) ) {
			$page = (array) $params['page'];
		}

		return $this->initCriteriaSlice( $criteria, $page );
	}
protected function initCriteria ( \ Aimeos \ MW \ Criteria \ Iface $ criteria , array $ params ) { if ( isset ( $ params [ 'filter' ] ) ) { $ criteria = $ this -> initCriteriaConditions ( $ criteria , ( array ) $ params [ 'filter' ] ) ; } if ( isset ( $ params [ 'sort' ] ) ) { $ criteria = $ this -> initCriteriaSortations ( $ criteria , ( array ) $ params [ 'sort' ] ) ; } $ page = [ ] ; if ( isset ( $ params [ 'page' ] ) ) { $ page = ( array ) $ params [ 'page' ] ; } return $ this -> initCriteriaSlice ( $ criteria , $ page ) ; }
Initializes the criteria object based on the given parameter

@param \Aimeos\MW\Criteria\Iface $criteria Criteria object
@param array $params List of criteria data with condition, sorting and paging
@return \Aimeos\MW\Criteria\Iface Initialized criteria object
Initializes the criteria object based on the given parameter