getInstance
public static Bitrix\Main\Config\Configuration Bitrix\Main\Config\Configuration::getInstance($moduleId = null);
This static method gets an object for Configuration class. Singleton pattern.
Parameters
Parameter | Description | Version |
---|---|---|
$moduleId | Module name. Allows to get module settings from the file .settings.php. Optional. | 17.5.10 |
Examples
Get object that contains all settings:
$configuration = Config\Configuration::getInstance();
© «Bitrix24», 2001-2024
Up