b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / app / code / Amasty / OrderExport / Model /
Filename/home/dev2.destoffenstraat.com/app/code/Amasty/OrderExport/Model/ConfigProvider.php
Size2.3 kb
Permissionrw-r--r--
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified14-Jun-2025 23:38
Last accessed22-Aug-2025 19:05
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Export Orders for Magento 2
*/

namespace Amasty\OrderExport\Model;

use Amasty\Base\Model\ConfigProviderAbstract;

/**
* Scope config Provider model
*/
class ConfigProvider extends ConfigProviderAbstract
{
/**
* @var string
*/
protected $pathPrefix = 'amorderexport/';

public const ENABLED = 'general/enabled';
public const BATCH_SIZE = 'general/batch_size';
public const LOG_CLEANING = 'general/log_cleaning';
public const LOG_PERIOD = 'general/log_period';
public const EXPORT_FILES = 'general/export_files';
public const FILES_PERIOD = 'general/files_period';
public const MULTI_PROCESS_ENABLED = 'multi_process/enabled';
public const MULTI_PROCESS_COUNT = 'multi_process/max_process_count';

public function isEnabled($storeId = null): bool
{
return (bool)$this->getValue(self::ENABLED, $storeId);
}

public function getBatchSize($storeId = null): int
{
return (int)$this->getValue(self::BATCH_SIZE, $storeId);
}

/**
* @param int|null $storeId
*
* @return bool
*/
public function getLogCleaning($storeId = null): bool
{
return (bool)$this->getValue(self::LOG_CLEANING);
}

/**
* @param int|null $storeId
*
* @return int
*/
public function getLogPeriod($storeId = null): int
{
return (int)$this->getValue(self::LOG_PERIOD);
}

/**
* @param int|null $storeId
*
* @return bool
*/
public function getExportFiles($storeId = null): bool
{
return (bool)$this->getValue(self::EXPORT_FILES);
}

/**
* @param int|null $storeId
*
* @return int
*/
public function getFilesPeriod($storeId = null): int
{
return (int)$this->getValue(self::FILES_PERIOD);
}

/**
* @param null $storeId
*
* @return bool
*/
public function useMultiProcess($storeId = null): bool
{
return $this->isSetFlag(self::MULTI_PROCESS_ENABLED, $storeId);
}

/**
* @param null $storeId
*
* @return int
*/
public function getMaxProcessCount($storeId = null): int
{
return (int)$this->getValue(self::MULTI_PROCESS_COUNT, $storeId);
}
}