public function getTargetList() {
		$targetFieldsList = $this->_modelSearch->getTargetFieldsList();
		$targetData = $this->_controller->request->query('target');
		if (empty($targetData)) {
			$target = $targetFieldsList;
		} else {
			$target = array_intersect((array)$targetData, $targetFieldsList);
			if (empty($target)) {
				throw new InternalErrorException(__d('cake_search_info', 'Invalid fields for filter of search scope.'));
			}
			$target = array_values($target);
		}
		if ($this->_modelSearch->getAnyPartFlag($targetData)) {
			$target[] = CAKE_SEARCH_INFO_TARGET_FIELD_ANY_PART;
		}

		return $target;
	}
public function getTargetList() {
		$targetFieldsList = $this->_modelSearch->getTargetFieldsList();
		$targetData = $this->_controller->request->query('target');
		if (empty($targetData)) {
			$target = $targetFieldsList;
		} else {
			$target = array_intersect((array)$targetData, $targetFieldsList);
			if (empty($target)) {
				throw new InternalErrorException(__d('cake_search_info', 'Invalid fields for filter of search scope.'));
			}
			$target = array_values($target);
		}
		if ($this->_modelSearch->getAnyPartFlag($targetData)) {
			$target[] = CAKE_SEARCH_INFO_TARGET_FIELD_ANY_PART;
		}

		return $target;
	}
public function getTargetList ( ) { $ targetFieldsList = $ this -> _modelSearch -> getTargetFieldsList ( ) ; $ targetData = $ this -> _controller -> request -> query ( 'target' ) ; if ( empty ( $ targetData ) ) { $ target = $ targetFieldsList ; } else { $ target = array_intersect ( ( array ) $ targetData , $ targetFieldsList ) ; if ( empty ( $ target ) ) { throw new InternalErrorException ( __d ( 'cake_search_info' , 'Invalid fields for filter of search scope.' ) ) ; } $ target = array_values ( $ target ) ; } if ( $ this -> _modelSearch -> getAnyPartFlag ( $ targetData ) ) { $ target [ ] = CAKE_SEARCH_INFO_TARGET_FIELD_ANY_PART ; } return $ target ; }
Get list of target fields by URL GET parameters

@return array List of target fields
@throws InternalErrorException
Get list of target fields by URL GET parameters