Documentation

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

ParameterDescriptionVersion
$moduleIdModule 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-2022
Up