* @copyright 2022 ECSoft * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of ECSoft */ include_once dirname(__FILE__) . '/EcsGtmProGtmGeneralConfig.php'; include_once dirname(__FILE__) . '/EcsGtmProGtmDataConfig.php'; include_once dirname(__FILE__) . '/EcsGtmProGtmUserIdConfig.php'; include_once dirname(__FILE__) . '/EcsGtmProGtmRemarketingConfig.php'; /** * @property EcsGtmPro $module * @property EcsGtmProGtmGeneralConfig $generalConfig * @property EcsGtmProGtmDataConfig $dataConfig * @property EcsGtmProGtmUserIdConfig $userIdConfig * @property EcsGtmProGtmRemarketingConfig $remarketingConfig */ class EcsGtmProGtmConfig { public $module; public $generalConfig; public $dataConfig; public $userIdConfig; public $remarketingConfig; public function __construct($module) { $this->module = $module; $this->generalConfig = new EcsGtmProGtmGeneralConfig($this->module); $this->dataConfig = new EcsGtmProGtmDataConfig($this->module); $this->userIdConfig = new EcsGtmProGtmUserIdConfig($this->module); $this->remarketingConfig = new EcsGtmProGtmRemarketingConfig($this->module); } public function loadAllFromConfig() { if (!$this->generalConfig->isLoaded()) { $this->generalConfig->loadFromConfig(); } if (!$this->dataConfig->isLoaded()) { $this->dataConfig->loadFromConfig(); } if (!$this->userIdConfig->isLoaded()) { $this->userIdConfig->loadFromConfig(); } if (!$this->remarketingConfig->isLoaded()) { $this->remarketingConfig->loadFromConfig(); } } }