70 $this->_oServersManager = $oServersManager;
90 $this->_oUserCounter = $oUserCounter;
111 $this->_oCaller = $oCaller;
157 $aSerials[] = array(
'attributes' => array(
'state' =>
'new'),
'value' => $sSerial);
171 $aSerials = (array)$aSerials;
176 $oRequest = $this->_formRequest($aSerials);
179 $oResponse = $oCaller->doRequest($oRequest);
201 $this->_sErrorMessage = $sErrorMessage;
225 if (isset($oResponse->code) && isset($oResponse->message)) {
226 if ($oResponse->code == $this->_iValidResponseCode &&
227 $oResponse->message == $this->_sValidResponseMessage
238 throw new oxException(
'OLC_ERROR_RESPONSE_NOT_VALID');
253 protected function _formRequest($aSerials)
258 $oRequest =
oxNew(
'oxOnlineLicenseCheckRequest');
260 $oRequest->revision = $oConfig->getRevision();
262 $oRequest->keys = array(
'key' => $aSerials);
264 $oRequest->productSpecificInformation =
new stdClass();
268 $oRequest->productSpecificInformation->servers = array(
'server' => $aServers);
272 if (!empty($aCounters)) {
273 $oRequest->productSpecificInformation->counters = array(
'counter' => $aCounters);
288 $aCounters = array();
291 $aCounters[] = array(
292 'name' =>
'admin users',
293 'value' => $oUserCounter->getAdminCount(),
295 $aCounters[] = array(
296 'name' =>
'active admin users',
297 'value' => $oUserCounter->getActiveAdminCount(),
301 $aCounters[] = array(
302 'name' =>
'subShops',
326 $this->_blIsException = $blIsException;