OpenXE/classes/Modules/DemoExporter/DemoExporterGateway.php

29 lines
523 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
namespace Xentral\Modules\DemoExporter;
use Xentral\Components\Database\Database;
final class DemoExporterGateway
{
private $db;
public function __construct(Database $db)
{
$this->db = $db;
}
/**
* @param string $name
*
* @return array
*/
public function getDemoExporterConfigurationValue($name)
{
return $this->db->fetchRow(
'SELECT k.wert FROM `konfiguration` AS `k` WHERE k.name=:name', ['name' => (string)$name]
);
}
}