forked from PAYONE-GmbH/magento-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.php
51 lines (48 loc) · 1.65 KB
/
Config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAYONE Magento 2 Connector is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>.
*
* PHP version 5
*
* @category Payone
* @package Payone_Magento2_Plugin
* @author FATCHIP GmbH <[email protected]>
* @copyright 2003 - 2016 Payone GmbH
* @license <http://www.gnu.org/licenses/> GNU Lesser General Public License
* @link http://www.payone.de
*/
namespace Payone\Core\Helper;
/**
* Helper class for everything that has to do with the configuration
*/
class Config extends \Payone\Core\Helper\Base
{
/**
* Return unserialized array of all forwarding urls
*
* @param string $sStoreCode
* @return array
*/
public function getForwardingUrls($sStoreCode = null)
{
$sForwarding = $this->getConfigParam('config', 'forwarding', 'payone_misc', $sStoreCode);
if ($sForwarding) {
$aForwarding = unserialize($sForwarding);
if (is_array($aForwarding) && !empty($aForwarding)) {
return $aForwarding;
}
}
return [];
}
}