Documentation

includeSharewareModule

integer public static
\Bitrix\Main\Loader::includeSharewareModule(
 string $moduleName
);

Static module connects partner module by its name.

This module must initiate the constant <module name>_DEMO = Y in the file include.php to specify demo mode. The file include.php must return false to define expired trial period.

Returns one of the following constants:
Loader::MODULE_NOT_FOUND,
Loader::MODULE_INSTALLED,
Loader::MODULE_DEMO,
Loader::MODULE_DEMO_EXPIRED.

Constants are used because they are easier to obfuscate.

Similar to the method CModule::IncludeModuleEx in the old core.

Parameters

ParameterDescriptionVersion
$moduleNameConnected module name.

Example



© «Bitrix24», 2001-2022
Up