admin/jqadm/src/Admin/JQAdm/Base.php
protected function storeSearchParams( array $params, $name )
	{
		$key = 'aimeos/admin/jqadm/' . $name;
		$session = $this->getContext()->getSession();

		if( isset( $params['filter'] ) ) {
			$session->set( $key . '/filter', $params['filter'] );
		}

		if( isset( $params['sort'] ) ) {
			$session->set( $key . '/sort', $params['sort'] );
		}

		if( isset( $params['page'] ) ) {
			$session->set( $key . '/page', $params['page'] );
		}

		if( isset( $params['fields'] ) ) {
			$session->set( $key . '/fields', $params['fields'] );
		}

		return [
			'fields' => $session->get( $key . '/fields' ),
			'filter' => $session->get( $key . '/filter' ),
			'page' => $session->get( $key . '/page' ),
			'sort' => $session->get( $key . '/sort' ),
		];
	}
protected function storeSearchParams( array $params, $name )
	{
		$key = 'aimeos/admin/jqadm/' . $name;
		$session = $this->getContext()->getSession();

		if( isset( $params['filter'] ) ) {
			$session->set( $key . '/filter', $params['filter'] );
		}

		if( isset( $params['sort'] ) ) {
			$session->set( $key . '/sort', $params['sort'] );
		}

		if( isset( $params['page'] ) ) {
			$session->set( $key . '/page', $params['page'] );
		}

		if( isset( $params['fields'] ) ) {
			$session->set( $key . '/fields', $params['fields'] );
		}

		return [
			'fields' => $session->get( $key . '/fields' ),
			'filter' => $session->get( $key . '/filter' ),
			'page' => $session->get( $key . '/page' ),
			'sort' => $session->get( $key . '/sort' ),
		];
	}
protected function storeSearchParams ( array $ params , $ name ) { $ key = 'aimeos/admin/jqadm/' . $ name ; $ session = $ this -> getContext ( ) -> getSession ( ) ; if ( isset ( $ params [ 'filter' ] ) ) { $ session -> set ( $ key . '/filter' , $ params [ 'filter' ] ) ; } if ( isset ( $ params [ 'sort' ] ) ) { $ session -> set ( $ key . '/sort' , $ params [ 'sort' ] ) ; } if ( isset ( $ params [ 'page' ] ) ) { $ session -> set ( $ key . '/page' , $ params [ 'page' ] ) ; } if ( isset ( $ params [ 'fields' ] ) ) { $ session -> set ( $ key . '/fields' , $ params [ 'fields' ] ) ; } return [ 'fields' => $ session -> get ( $ key . '/fields' ) , 'filter' => $ session -> get ( $ key . '/filter' ) , 'page' => $ session -> get ( $ key . '/page' ) , 'sort' => $ session -> get ( $ key . '/sort' ) , ] ; }
Stores and returns the parameters used for searching items

@param array $params GET/POST parameter set
@param string $name Name of the panel/subpanel
@return array Associative list of parameters for searching items
Stores and returns the parameters used for searching items