source/Core/OnlineLicenseCheck.php
protected function formRequest($serials)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        /** @var \OxidEsales\Eshop\Core\OnlineLicenseCheckRequest $request */
        $request = oxNew(\OxidEsales\Eshop\Core\OnlineLicenseCheckRequest::class);

        $request->keys = ['key' => $serials];

        $request->productSpecificInformation = new stdClass();

        if (!is_null($this->getAppServerExporter())) {
            $servers = $this->getAppServerExporter()->exportAppServerList();
            $request->productSpecificInformation->servers = ['server' => $servers];
        }

        $counters = $this->formCounters();
        if (!empty($counters)) {
            $request->productSpecificInformation->counters = ['counter' => $counters];
        }

        return $request;
    }
protected function formRequest($serials)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        /** @var \OxidEsales\Eshop\Core\OnlineLicenseCheckRequest $request */
        $request = oxNew(\OxidEsales\Eshop\Core\OnlineLicenseCheckRequest::class);

        $request->keys = ['key' => $serials];

        $request->productSpecificInformation = new stdClass();

        if (!is_null($this->getAppServerExporter())) {
            $servers = $this->getAppServerExporter()->exportAppServerList();
            $request->productSpecificInformation->servers = ['server' => $servers];
        }

        $counters = $this->formCounters();
        if (!empty($counters)) {
            $request->productSpecificInformation->counters = ['counter' => $counters];
        }

        return $request;
    }
protected function formRequest ( $ serials ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; /** @var \OxidEsales\Eshop\Core\OnlineLicenseCheckRequest $request */ $ request = oxNew ( \ OxidEsales \ Eshop \ Core \ OnlineLicenseCheckRequest :: class ) ; $ request -> keys = [ 'key' => $ serials ] ; $ request -> productSpecificInformation = new stdClass ( ) ; if ( ! is_null ( $ this -> getAppServerExporter ( ) ) ) { $ servers = $ this -> getAppServerExporter ( ) -> exportAppServerList ( ) ; $ request -> productSpecificInformation -> servers = [ 'server' => $ servers ] ; } $ counters = $ this -> formCounters ( ) ; if ( ! empty ( $ counters ) ) { $ request -> productSpecificInformation -> counters = [ 'counter' => $ counters ] ; } return $ request ; }
Builds request object with required parameters.

@param array $serials Array of serials to add to request.

@return \OxidEsales\Eshop\Core\OnlineLicenseCheckRequest
Builds request object with required parameters .