protected function _getFilterRequestData($baseKey = null, $key = null) {
		$filterData = [];
		if (empty($baseKey)) {
			return $filterData;
		}

		if ($this->_getFlagUsePost()) {
			$requestData = $this->request->data($baseKey);
			if (!empty($requestData)) {
				$filterData = $requestData;
			}
		} else {
			$requestData = $this->request->query('data.' . $baseKey);
			if (!empty($requestData)) {
				$filterData = array_map('unserialize', array_unique(array_map('serialize', $requestData)));
			}
		}
		if (!empty($key)) {
			return Hash::get($filterData, $key);
		}

		return $filterData;
	}
protected function _getFilterRequestData($baseKey = null, $key = null) {
		$filterData = [];
		if (empty($baseKey)) {
			return $filterData;
		}

		if ($this->_getFlagUsePost()) {
			$requestData = $this->request->data($baseKey);
			if (!empty($requestData)) {
				$filterData = $requestData;
			}
		} else {
			$requestData = $this->request->query('data.' . $baseKey);
			if (!empty($requestData)) {
				$filterData = array_map('unserialize', array_unique(array_map('serialize', $requestData)));
			}
		}
		if (!empty($key)) {
			return Hash::get($filterData, $key);
		}

		return $filterData;
	}
protected function _getFilterRequestData ( $ baseKey = null , $ key = null ) { $ filterData = [ ] ; if ( empty ( $ baseKey ) ) { return $ filterData ; } if ( $ this -> _getFlagUsePost ( ) ) { $ requestData = $ this -> request -> data ( $ baseKey ) ; if ( ! empty ( $ requestData ) ) { $ filterData = $ requestData ; } } else { $ requestData = $ this -> request -> query ( 'data.' . $ baseKey ) ; if ( ! empty ( $ requestData ) ) { $ filterData = array_map ( 'unserialize' , array_unique ( array_map ( 'serialize' , $ requestData ) ) ) ; } } if ( ! empty ( $ key ) ) { return Hash :: get ( $ filterData , $ key ) ; } return $ filterData ; }
Return request data for filter from GET or POST request.

@param string $baseKey The name of the base parameter to retrieve the configurations.
@param string $key The name of the parameter to retrieve the configurations.
@return array|mixed On success array data from request if its not empty or null on failure.
Return request data for filter from GET or POST request .