Application server data access manager.
◆ __construct()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::__construct |
( |
|
$database, |
|
|
|
$config |
|
) |
| |
ApplicationServerDao constructor.
- Parameters
-
\OxidEsales\Eshop\Core\Database\Adapter\DatabaseInterface | $database | Database connection class. |
\OxidEsales\Eshop\Core\Config | $config | Main shop configuration class. |
◆ commitTransaction()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::commitTransaction |
( |
| ) |
|
Commit a database transaction.
◆ convertAppServerToConfigOption()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::convertAppServerToConfigOption |
( |
|
$appServer | ) |
|
|
private |
Convert ApplicationServer object into simple array for saving into database oxconfig table.
- Parameters
-
\OxidEsales\Eshop\Core\DataObject\ApplicationServer | $appServer | An application server object. |
- Returns
- array
◆ createServer()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::createServer |
( |
|
$data | ) |
|
|
protected |
Creates ApplicationServer from given server id and data.
- Parameters
-
array | $data | The array of server data. |
- Returns
- \OxidEsales\Eshop\Core\DataObject\ApplicationServer
◆ delete()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::delete |
( |
|
$id | ) |
|
Deletes the entity with the given id.
- Parameters
-
string | $id | An id of the entity to delete. |
◆ findAll()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::findAll |
( |
| ) |
|
Finds all application servers.
- Returns
- array
◆ findAppServer()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::findAppServer |
( |
|
$id | ) |
|
Finds an application server by given id, null if none is found.
- Parameters
-
string | $id | An id of the entity to find. |
- Returns
- \OxidEsales\Eshop\Core\DataObject\ApplicationServer|null
◆ getServerIdFromConfig()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::getServerIdFromConfig |
( |
|
$varName | ) |
|
|
private |
Parses config option name to get the server id.
- Parameters
-
string | $varName | The name of the config option. |
- Returns
- string The id of server.
◆ getServerParameter()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::getServerParameter |
( |
|
$data, |
|
|
|
$name |
|
) |
| |
|
private |
Gets server parameter.
- Parameters
-
array | $data | The array of server data. |
string | $name | The name of searched parameter. |
- Returns
- mixed
◆ getValueFromConfig()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::getValueFromConfig |
( |
|
$varValue | ) |
|
|
private |
Unserializes config option value.
- Parameters
-
string | $varValue | The serialized value of the config option. |
- Returns
- array The information of server.
◆ insert()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::insert |
( |
|
$appServer | ) |
|
|
protected |
Insert new application server entity.
- Parameters
-
\OxidEsales\Eshop\Core\DataObject\ApplicationServer | $appServer | |
◆ rollbackTransaction()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::rollbackTransaction |
( |
| ) |
|
RollBack a database transaction.
◆ save()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::save |
( |
|
$appServer | ) |
|
Updates or insert the given entity.
- Parameters
-
\OxidEsales\Eshop\Core\DataObject\ApplicationServer | $appServer | |
◆ selectAllData()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::selectAllData |
( |
| ) |
|
|
private |
Returns all application server entities from database.
- Returns
- \OxidEsales\Eshop\Core\Database\Adapter\ResultSetInterface
◆ selectDataById()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::selectDataById |
( |
|
$id | ) |
|
|
private |
Returns all application server entities from database.
- Parameters
-
string | $id | An id of the entity to find. |
- Returns
- string
◆ startTransaction()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::startTransaction |
( |
| ) |
|
Start a database transaction.
◆ update()
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::update |
( |
|
$appServer | ) |
|
|
protected |
Updates the given entity.
- Parameters
-
\OxidEsales\Eshop\Core\DataObject\ApplicationServer | $appServer | |
◆ $appServer
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::$appServer = [] |
|
private |
◆ $config
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::$config |
|
private |
◆ $database
OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::$database |
|
protected |
◆ CONFIG_NAME_FOR_SERVER_INFO
const OxidEsales\EshopCommunity\Core\Dao\ApplicationServerDao::CONFIG_NAME_FOR_SERVER_INFO = 'aServersData_' |
The name of config option for saving servers data information.
The documentation for this class was generated from the following file: