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();


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix24», 2001-2022