OXID eShop CE
6.1.5
|
Public Member Functions | |
__construct (\OxidEsales\Eshop\Core\Dao\ApplicationServerDaoInterface $appServerDao, $utilsServer, $currentTime) | |
loadAppServerList () | |
loadAppServer ($id) | |
deleteAppServerById ($serverId) | |
saveAppServer ($appServer) | |
loadActiveAppServerList () | |
updateAppServerInformationInAdmin () | |
updateAppServerInformationInFrontend () | |
updateAppServerInformation ($adminMode) | |
Protected Member Functions | |
filterActiveAppServers ($appServerList) | |
Private Member Functions | |
cleanupAppServers () | |
updateAppServerData ($appServer, $adminMode) | |
addNewAppServerData ($adminMode) | |
Private Attributes | |
$appServerDao | |
$currentTime = 0 | |
$utilsServer | |
Manages application server information.
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::__construct | ( | \OxidEsales\Eshop\Core\Dao\ApplicationServerDaoInterface | $appServerDao, |
$utilsServer, | |||
$currentTime | |||
) |
ApplicationServerService constructor.
\OxidEsales\Eshop\Core\Dao\ApplicationServerDaoInterface | $appServerDao | The Dao of application server. |
\OxidEsales\Eshop\Core\UtilsServer | $utilsServer | |
int | $currentTime | The current time - timestamp. |
|
private |
Adds new application server.
bool | $adminMode | The status of admin mode. |
|
private |
Deletes all application servers, that are longer not active.
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::deleteAppServerById | ( | $serverId | ) |
Removes server node information.
string | $serverId | The Id of the application server to delete. |
|
protected |
Filter only active application servers from given list.
array | $appServerList | The list of application servers. |
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::loadActiveAppServerList | ( | ) |
Returns an array of all only active application servers.
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::loadAppServer | ( | $id | ) |
Load the application server for given id.
string | $id | The id of the application server to load. |
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::loadAppServerList | ( | ) |
Returns an array of all application servers.
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::saveAppServer | ( | $appServer | ) |
Saves application server data.
\OxidEsales\Eshop\Core\DataObject\ApplicationServer | $appServer |
|
private |
Updates application server with the newest information.
\OxidEsales\Eshop\Core\DataObject\ApplicationServer | $appServer | The application server to update. |
bool | $adminMode | The status of admin mode. |
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::updateAppServerInformation | ( | $adminMode | ) |
Renews application server information if it is outdated or if it does not exist.
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::updateAppServerInformationInAdmin | ( | ) |
Renews application server information when it is call in admin area and if it is outdated or if it does not exist.
OxidEsales\EshopCommunity\Core\Service\ApplicationServerService::updateAppServerInformationInFrontend | ( | ) |
Renews application server information when it is call in frontend and if it is outdated or if it does not exist.
|
private |
|
private |
|
private |