68 lines
2.2 KiB
PHP
68 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* 2022 ECSoft
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://opensource.org/licenses/afl-3.0.php
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to dev.ecsoft@gmail.com so we can send you a copy immediately.
|
|
*
|
|
* @author ECSoft <dev.ecsoft@gmail.com>
|
|
* @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();
|
|
}
|
|
}
|
|
}
|