Skip to content
Code-Schnipsel Gruppen Projekte
Commit 5ab27a5d erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor: #33

Übergeordneter 7d330e6e
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -207,7 +207,6 @@ public function hasInvoice()
return $this->isPosted();
}
/**
* Post the order -> Create an invoice for the order
* alias for createInvoice()
......@@ -215,6 +214,8 @@ public function hasInvoice()
* @return QUI\ERP\Accounting\Invoice\Invoice
*
* @throws QUI\Exception
*
* @deprecated use createInvoice
*/
public function post()
{
......
<?php
/**
* This file contains QUI\ERP\Order\Settings
*/
namespace QUI\ERP\Order;
use QUI;
/**
* Class Settings
* - Main helper to ask for settings
*
* @package QUI\ERP\Order
*/
class Settings extends QUI\Utils\Singleton
{
/**
* @var array
*/
protected $settings = [];
/**
* Settings constructor.
*/
public function __construct()
{
try {
$Config = QUI::getPackage('quiqqer/order')->getConfig();
} catch (QUI\Exception $Exception) {
QUI\System\Log::writeDebugException($Exception);
return;
}
$this->settings = $Config->toArray();
}
/**
* Return the setting
*
* @param string $section
* @param string $key
*
* @return mixed
*/
public function get($section, $key)
{
if (isset($this->settings[$section][$key])) {
return $this->settings[$section][$key];
}
return false;
}
/**
* Return the setting
*
* @param string $section
* @param string $key
* @param string|bool|integer|float $value
*/
public function set($section, $key, $value)
{
$this->settings[$section][$key] = $value;
}
//region special settings
//endregion
}
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren