Get list of target fields by URL GET parameters

@return array List of target fields
@throws InternalErrorException
172642
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;
	}
1014181
public function getRequestParameters()
    {
        $aViewVariables = array();

        $aTmp = $this->GetAllInputFieldParameter();
        foreach (array_keys($aTmp) as $sTmpKey) {
            $aViewVariables[$sTmpKey] = $aTmp[$sTmpKey];
        }
        $aTmp = $this->GetUserAddressData();
        foreach (array_keys($aTmp) as $sTmpKey) {
            $aViewVariables[$sTmpKey] = $aTmp[$sTmpKey];
        }
        $aTmp = $this->GetPaymentTypeSpecifivParameter();
        foreach (array_keys($aTmp) as $sTmpKey) {
            $aViewVariables[$sTmpKey] = $aTmp[$sTmpKey];
        }

        return $aViewVariables;
    }
303600
public function getRedirectUrlParams()
    {
        $params = $_GET;
        unset($params['url']); // CLIRequestBuilder may add this
        foreach ($this->filteredTokens() as $token) {
            $params = array_merge($params, $token->params());
        }

        return $params;
    }
258375
public function getParameters(): array
    {
        if (null === $this->parameters) {
            $this->parameters = $this->extractArguments();
        }

        return $this->parameters;
    }
580532
private function getApplyQueryStringParams()
    {
        $qsParams = [
            $this->getFilter()->getRequestVar()      => $this->getApplyValue(),
            $this->_htmlPagerBlock->getPageVarName() => null,
        ];

        return $qsParams;
    }
799930
protected function getParams()
    {
        $keys = array();
        foreach (func_get_args() as $k) {
            if (is_string($k)) {
                $keys[] = $k;
            }
        }

        $params = $returnedParams = Input::all();

        list($offset, $limit) = $this->apiOffsetLimit();
        $params['offset'] = $offset;
        $params['limit']  = $limit;

        if (Input::has('includes') && is_array(Input::get('includes'))) {
            $params['includes'] = (array) Input::get('includes');
        }

        /*
         * Clean
         */
        if (!empty($key) && !empty($params)) {
            $returnedParams = array();

            foreach ($params as $key => $value) {
                if (in_array($key, $keys)) {
                    $returnedParams[$key] = $value;
                }
            }
        }

        return $returnedParams;
    }
673516
public function getInternalParameters()
    {
        if (\is_object($this->parameters)) {
            $parameters = $this->parameters->getParameters();
            if (\count($parameters)) {
                return \count($parameters).', ...';
            }
        }

        return '';
    }
519657
protected function getOperationWithParams()
    {
        $params    = [];
        $operation = $this->initiate($params);
        if ($operation == 'JOBRESULTS_CREATED') {
            $operation = $this->job($params);
        } else {

            $found = false;
            $url   = $this->getUrlPattern();
            $map   = [];
            if (!is_null($this->model->new_value)) {
                $map    = $this->getReplacementKeys();
                $values = $this->getReplacementValues();
                $title  = $this->getTitle($this->model->new_value);
                $found  = $this->urlFillable($url, $map);
            } else {
                $title = $this->getTitle($this->model->old_value);
            }
            array_set($params, 'owner_id', ($found && strlen($url) > 0) ? $this->link($map, $values, $url, $title) : $title );

            $operation = $this->getRelationData($params, $map);
        }
        $this->fill($params);
        return [$operation, $params];
    }
960551
public function getAttributes(): array
    {
        $attributes = [];
        foreach ($this->attributes as $attributeName => $attribute) {
            $value = $attribute->value;
            $attributes[$attributeName] = $value !== '' ? (strstr($value, 'html5-dom-document-internal-entity') !== false ? $this->updateResult($value) : $value) : '';
        }
        return $attributes;
    }
1015882
public function getErrorsAsArray()
    {
        $errors = array();
        $errors['HasErrors'] = $this->hasErrors();
        $errors['ErrorCount'] = $this->getErrorCount();
        $errors['Errors'] = (array)$this->errors;

        /*
        $errors['ErrorString'] = '';
        $errors['FieldErrorString'] = '';
        $errors['GlobalErrorString'] = '';
        $errors['ErrorStringHTML'] = '';
        $errors['FieldErrorStringHTML'] = '';
        $errors['GlobalErrorStringHTML'] = '';

        */

        foreach ((array)$this->errors as $err) {

            if ($err instanceof FieldValidationError) {
                $field = $err->getFieldResolved();
                $errors['Has'.$field.'Error'] = true;
                // $errors[$field.'ErrorMessage'] = $err->getDefaultErrorMessage();
                // $errors[$field.'ErrorCode'] = $err->getErrorCode();
                $errors['ErrorFields'][] = $field;
                $errors['ErrorValues'][] = $err->getValue();

                // $errors['FieldErrorString'] .= $err->getDefaultErrorMessage()."\n";
                // $errors['FieldErrorStringHTML'] .= $err->getDefaultErrorMessage().'<br/>';
            } else {
                // $errors['GlobalErrorString'] .= $err->getDefaultErrorMessage()."\n";
                // $errors['GlobalErrorStringHTML'] .= $err->getDefaultErrorMessage().'<br/>';
            }

            $errors['ErrorCodes'][] = $err->getErrorCode();
            // $errors['ErrorMessages'][] = $err->getDefaultErrorMessage();
            // $errors['ErrorString'] .= $err->getDefaultErrorMessage()."\n";
            // $errors['ErrorStringHTML'] .= $err->getDefaultErrorMessage().'<br/>';
        }

        return $errors;

    }
77391
public static function GetURLPageStateParameters()
    {
        // ------------------------------------------------------------------------
        $oURLData = &TCMSSmartURLData::GetActive();
        $aSeoParam = $oURLData->getSeoURLParameters();
        $aSeoParam[] = MTShopBasketCoreEndpoint::URL_REQUEST_PARAMETER;
        $aSeoParam[] = 'module_fnc';
        $aSeoParam[] = 'pagedef';

        return array_keys(TGlobal::instance()->GetRawUserData(null, $aSeoParam));
    }
14687
public function getErrors(): array {
        $result = [];
        foreach ($this->getRawErrors() as $field => $error) {
            $result[] = $this->pluckError(['field' => $field] + $error);
        }
        return $result;
    }
1140838
public function getParameters()
    {
        $function = array($this->getDeclaringClass()->getName(), $this->getName());
        $res = parent::getParameters();

        foreach ($res as $key => $val) {
            $res[$key] = new ReflectionParameter($function, $val->getName());
        }

        return $res;
    }
808706
public function getParams(): array
    {
        $params = array();
        $args = $this->args;

        $params['apikey'] = $this->apiKey;

        $methods = Client::getMethods();

        foreach ($methods[$this->method] as $key => $paramName) {
            if (isset($args[$key])) {
                $params[$paramName] = $args[$key];
            }
        }

        return $params;
    }
706780
public function getLinks() : Array
    {
        if( ! $this->isJsonCheck() || $this->refresh === true )
        {
            $result = $this->getApiResult();

            if( ! is_object($result) )
            {
                throw new Exception\BadRequestURLException($this->address);
            }

            $this->putJsonContent($result);
        }

        $result = $this->decodeArrrayJsonContent();

        return $this->convertArrayByKeyValues($result);
    }
933566
public function getList()
    {
        $routeMatch = $this->getEvent()->getRouteMatch();
        $mode = $routeMatch->getParam('mode', false);
        $annee = $routeMatch->getParam('annee', 0);
        $processStateHandler = $this->getProcessStateHandler();
        $processes = $processStateHandler->getRunningProcessList($mode, $annee);
        $response = $this->getResponse();
        $response->getHeaders()->addHeaderLine('Content-Type', 'application/json');
        $serializer = $this->getSerializer();
        $processJson = $serializer->serialize($processes, 'json');
        $response->setContent($processJson);
        return $response;
    }
562197
public function get_params() {
        return array('contextid'=>$this->context->id,
                     'component'=>$this->lf->get_component(),
                     'filearea' =>$this->lf->get_filearea(),
                     'itemid'   =>$this->lf->get_itemid(),
                     'filepath' =>$this->lf->get_filepath(),
                     'filename' =>$this->lf->get_filename());
    }