source/Core/Service/ApplicationServerService.php
public function updateAppServerInformation($adminMode)
    {
        $this->appServerDao->startTransaction();
        try {
            /** @var \OxidEsales\Eshop\Core\DataObject\ApplicationServer $appServer */
            $appServer = $this->appServerDao->findAppServer($this->utilsServer->getServerNodeId());
            if ($appServer === null) {
                $this->addNewAppServerData($adminMode);
            } elseif ($appServer->needToUpdate($this->currentTime)) {
                $this->updateAppServerData($appServer, $adminMode);
            }
        } catch (\Exception $exception) {
            $this->appServerDao->rollbackTransaction();
            throw $exception;
        }
        $this->appServerDao->commitTransaction();
    }
public function updateAppServerInformation($adminMode)
    {
        $this->appServerDao->startTransaction();
        try {
            /** @var \OxidEsales\Eshop\Core\DataObject\ApplicationServer $appServer */
            $appServer = $this->appServerDao->findAppServer($this->utilsServer->getServerNodeId());
            if ($appServer === null) {
                $this->addNewAppServerData($adminMode);
            } elseif ($appServer->needToUpdate($this->currentTime)) {
                $this->updateAppServerData($appServer, $adminMode);
            }
        } catch (\Exception $exception) {
            $this->appServerDao->rollbackTransaction();
            throw $exception;
        }
        $this->appServerDao->commitTransaction();
    }
public function updateAppServerInformation ( $ adminMode ) { $ this -> appServerDao -> startTransaction ( ) ; try { /** @var \OxidEsales\Eshop\Core\DataObject\ApplicationServer $appServer */ $ appServer = $ this -> appServerDao -> findAppServer ( $ this -> utilsServer -> getServerNodeId ( ) ) ; if ( $ appServer === null ) { $ this -> addNewAppServerData ( $ adminMode ) ; } elseif ( $ appServer -> needToUpdate ( $ this -> currentTime ) ) { $ this -> updateAppServerData ( $ appServer , $ adminMode ) ; } } catch ( \ Exception $ exception ) { $ this -> appServerDao -> rollbackTransaction ( ) ; throw $ exception ; } $ this -> appServerDao -> commitTransaction ( ) ; }
Renews application server information if it is outdated or if it does not exist.

@throws \Exception

@param bool $adminMode The status of admin mode
Renews application server information if it is outdated or if it does not exist .