View Required Parameters.

@return array
161905
public function with()
    {
        $recentOrder = null;

        $order = app(OrderInterface::class);

        $latestOrder = $order->query()->orderBy('id', 'desc')->first();
        if ($latestOrder !== null) {
            $totalAmount = '';
            foreach ($latestOrder->products as $product) {
                $totalAmount = $product->getRelationValue('pivot')->qty * $product->getRelationValue('pivot')->price;
            }

            $recentOrder['order_id'] = $latestOrder->id;
            $recentOrder['user'] = $latestOrder->user->fullName;
            $recentOrder['customer_id'] = $latestOrder->user->id;
            $recentOrder['product_count'] = $latestOrder->products->count();
            $recentOrder['total_amount'] = $totalAmount;
            $recentOrder['status'] = $latestOrder->orderStatus->name;
        }

        return ['recentOrderData' => $recentOrder];
    }
1108615
public function loadParams()
    {
        switch ($this->action_mode) {
            case self::ACTION_DOUBLE :
                $a = array_merge(\OWeb\OWeb::getInstance()->get_post(), \OWeb\OWeb::getInstance()->get_get());
                break;
            case self::ACTION_GET :
                $a = \OWeb\OWeb::getInstance()->get_get();
                break;
            case self::ACTION_POST :
                $a = \OWeb\OWeb::getInstance()->get_post();
                break;
        }
        $this->params = $a;
    }
626804
public function getParams(): array
    {
        $params = [
            'openid.assoc_handle' => $this->request->get(self::OPENID_ASSOC_HANDLE),
            'openid.signed' => $this->request->get(self::OPENID_SIGNED),
            'openid.sig' => $this->request->get(self::OPENID_SIG),
            'openid.ns' => self::OPENID_NS,
            'openid.mode' => 'check_authentication',
        ];

        $signedParams = explode(',', $this->request->get(self::OPENID_SIGNED));

        foreach ($signedParams as $item) {
            $value = $this->request->get('openid_'.str_replace('.', '_', $item));
            $params['openid.'.$item] = get_magic_quotes_gpc() ? stripslashes($value) : $value;
        }

        return $params;
    }
200045
public function getParams()
    {
        return [
            'metrics'    => $this->metrics,
            'dimensions' => $this->dimensions,
            'sort'       => $this->sort,
            'filters'    => $this->filters,
            'segment'    => $this->segment,
        ];
    }
923185
protected function getParamsArray()
    {
        return array(
            'tabbed' => $this->tabbed,
            'includeRelations' => $this->includeRelations,
            'restrictFields' => $this->restrictFields,
            'fieldClasses' => $this->fieldClasses,
            'ajaxSafe' => $this->ajaxSafe
        );
    }
1332725
public function getParameters()
    {
        $extendedParameters = [];
        foreach (parent::getParameters() as $parameter) {
            $extendedParameters[] = new ParameterReflection([$this->getDeclaringClass()->getName(), $this->getName()], $parameter->getName());
        }
        return $extendedParameters;
    }
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());
    }
889296
protected function getPreviewRouteParameters()
    {
        $previewPath = sprintf('/%s/preview/{url}', $this->adminKey);
        $previewDefaults = array(
            '_controller' => 'KunstmaanNodeBundle:Slug:slug',
            'preview' => true,
            'url' => '',
            '_locale' => $this->getDefaultLocale(),
        );
        $previewRequirements = array(
            'url' => $this->getSlugPattern(),
        );

        if ($this->isMultiLanguage()) {
            $previewPath = '/{_locale}' . $previewPath;
            unset($previewDefaults['_locale']);
            $previewRequirements['_locale'] = $this->getEscapedLocales($this->getBackendLocales());
        }

        return array(
            'path' => $previewPath,
            'defaults' => $previewDefaults,
            'requirements' => $previewRequirements,
        );
    }
422193
protected function getParams()
    {
        $params = ["key=".$this->apiKey];
        if (@count($this->options[0]) > 0 && is_array($this->options[0])) {
            foreach ($this->options[0] as $k => $v) {
                if ($k != "response_type" && $k != "apiKey") {
                    array_push($params, "$k=$v");
                }
            }
        }
        return $params;
    }
778383
def check_required_params(self):
        
        for param in self.REQUIRED_FIELDS:
            if param not in self.params:
                raise ValidationError("Missing parameter: {}".format(param))
600793
public function parseFieldParameters()
    {
        $parameters = parent::parseFieldParameters();

        if (! isset($parameters['options']) || ! is_array($parameters['options']) || count($parameters['options']) == 0) {
            $parameters['options'] = $this->loadRelationship();
        }

        return $parameters;
    }
209288
public function toRequestParams()
    {
        $requestParams = array();
        $requestParams["name"] = $this->_name;
        $requestParams["public"] = 1;
        if ($this->_id)
        {
            $requestParams["id"] = $this->_id;
        }
        $data = array();

        foreach ($this->_products as $product)
        {
            $init_price = $product["price"];
            $idx = $product[$product["type"]];

            if ($product["type"] == "subscription")
            {
                $subscription_info = $this->_subscriptions[$idx];
                $price = $subscription_info;
            }
            else if ($product["type"] == "payment_plan")
            {
                $payment_info = $this->_paymentPlans[$idx];
                $price = $payment_info;
            }
            else
            {
                $price = null;
                if ($init_price !== null)
                {
                    $price = array("price" => $init_price);
                }
                $product["type"] = "single";
            }

            if (isset($product["trial"]))
            {
                $idx = $product["trial"];
                $trial_info = $this->_trials[$idx];
                unset($product["trial"]);
                $product["trial"] = $trial_info;
            }
            unset($product[$product["type"]]);

            if (isset($price))
            {
                unset($product["price"]);
                $product["price"][] = $price;
            }
            $data["products"][] = $product;
        }

        if (!empty($this->_shipping))
        {
            $data["shipping"] = $this->_shipping;
            $data["hasShipping"] = true;
        }
        if (!empty($this->_taxes))
        {
            $data["taxes"] = $this->_taxes;
            $data["hasTaxes"] = true;
        }

        $data["invoice_template"] = $this->_invoiceTemplate;
        $data["shipping_charge_reoccurring_orders"] = $this->_shipping_charge_reoccurring_order;
        $data["name"] = $this->_name;
        $requestParams["data"] = json_encode($data);

        return $requestParams;
    }
756503
protected function getParameterInfo()
    {
        $params = array();

        $parameters = $this->reflection->getParameters();
        foreach ($parameters as $parameter) {
            $params[$parameter->getName()] = array(
                'name'      => $parameter->getName(),
                'hint_type' => $parameter->getOriginalTypeHint(),
                'type'      => $parameter->getOriginalTypeHint(),
                'comment'   => null
            );

            if ($parameter->isDefaultValueAvailable()) {
                try {
                    $params[$parameter->getName()]['default'] = trim($parameter->getDefaultValueDefinition());
                } catch (\Exception\RuntimeException $e) {
                    // Just don't provide a default
                }
            }
        }

        $annotations = array_filter($this->getParser()->getAnnotations(), function ($v) {
            $e = explode(' ', $v);
            return isset($e[0]) && $e[0] == '@param';
        });
        foreach ($annotations as $parameter) {
            $parts = explode(' ', $parameter);

            if (count($parts) < 3) {
                continue;
            }

            $type = trim($parts[1]);
            $name = trim(str_replace('$', '', $parts[2]));
            $comment = trim(implode(' ', array_slice($parts, 3)));

            if (isset($params[$name])) {
                if ($params[$name]['type'] == null && $type) {
                    $params[$name]['type'] = $type;
                }
                if ($comment) {
                    $params[$name]['comment'] = $comment;
                }
            }
        }

        return $params;
    }
1268247
public function getRequestParameters()
    {
        // $page current page of the grid
        $page = (int) $this->getRequest()->get('page', 0);
        
        // $orderBy column name to sort datagrid records
        $orderBy = $this->getRequest()->get('sidx', false);
        
        // ASC | DESC $sort
        $sort = strtoupper($this->getRequest()->get('sord', 'asc'));
        
        // $records  number of records to display
        $records = (int) $this->getRequest()->get('rows', 0);
        
        // $search is search in the query
        $search = ($this->getRequest()->get('_search', false) === 'true');
 
        // $filters Filters from the search query
        $filters = (array) json_decode($this->getRequest()->get('filters', '{}'));
        
        // $masterRowId Id of the master grid record
        $masterGridRowId = (int) $this->getRequest()->get('masterGridRowId', 0);
        
        $parameters = array(
            'page'            => $page,
            'orderBy'         => $orderBy,
            'sort'            => $sort,
            'records'         => $records,
            'search'          => $search,
            'filters'         => $filters,
            'masterGridRowId' => $masterGridRowId
        );
        
        return $parameters;
    }
348021
protected function getFacetParameters() {
        $facetParameters = [];
        $facetParameters['facet'] = 'true';
        $facetParameters['facet.mincount'] = $this->getMinCount();
        $facetParameters['facet.limit'] = $this->getLimit();
        $facetParameters['facet.field'] = $this->getFields();

        foreach ($this->getAdditionalParameters() as $additionalParameterKey => $additionalParameterValue) {
            $facetParameters[$additionalParameterKey] = $additionalParameterValue;
        }

        if ($facetParameters['json.facet']) {
            $facetParameters['json.facet'] = json_encode($facetParameters['json.facet']);
        }

        $facetParameters = $this->applySorting($facetParameters);
        return $facetParameters;
    }
608199
public function getParameters() : array
    {
        if (is_null($this->parameters)) {
            $matches = [];
            $regExp = self::PARAMS_SEARCH_REGEXP;
            preg_match_all($regExp, $this->str, $matches);
            $this->parameters = $matches[2];
        }

        return $this->parameters;
    }
1237918
protected function getParametersAliases()
    {
        return array(
            'user_id' => self::LTI_USER_ID,
            'oauth_consumer_key' => self::LTI_CONSUMER_KEY,
            'label' => OntologyRdfs::RDFS_LABEL,
            'oauth-key' => DataStore::PROPERTY_OAUTH_KEY,
            'oauth-secret' => DataStore::PROPERTY_OAUTH_SECRET,
            'oauth-callback-url' => DataStore::PROPERTY_OAUTH_CALLBACK,
        );
    }