См. определение в файле loader.php строка 10
◆ autoLoad()
static autoLoad |
( |
|
$className | ) |
|
|
static |
◆ clearModuleCache()
static clearModuleCache |
( |
|
$moduleName | ) |
|
|
static |
◆ getDocumentRoot()
static getDocumentRoot |
( |
| ) |
|
|
static |
Returns document root
- Возвращает
- string Document root
См. определение в файле loader.php строка 248
◆ getLocal()
static getLocal |
( |
|
$path, |
|
|
|
$root = null |
|
) |
| |
|
static |
Checks if file exists in /local or /bitrix directories
- Аргументы
-
string | $path | File path relative to /local/ or /bitrix/ |
string | null | $root | Server document root, default self::getDocumentRoot() |
- Возвращает
- string|bool Returns combined path or false if the file does not exist in both dirs
См. определение в файле loader.php строка 523
◆ getPersonal()
static getPersonal |
( |
|
$path | ) |
|
|
static |
Checks if file exists in personal directory. If $_SERVER["BX_PERSONAL_ROOT"] is not set than personal directory is equal to /bitrix/
- Аргументы
-
string | $path | File path relative to personal directory |
- Возвращает
- string|bool Returns combined path or false if the file does not exist
См. определение в файле loader.php строка 551
◆ includeModule()
static includeModule |
( |
|
$moduleName | ) |
|
|
static |
Includes a module by its name.
- Аргументы
-
string | $moduleName | Name of the included module |
- Возвращает
- bool Returns true if module was included successfully, otherwise returns false
- Исключения
-
См. определение в файле loader.php строка 68
◆ includeSharewareModule()
static includeSharewareModule |
( |
|
$moduleName | ) |
|
|
static |
Includes shareware module by its name. Module must initialize constant <module name>_DEMO = Y in include.php to define demo mode. include.php must return false to define trial period expiration. Constants is used because it is easy to obfuscate them.
- Аргументы
-
string | $moduleName | Name of the included module |
- Возвращает
- int One of the following constant: Loader::MODULE_NOT_FOUND, Loader::MODULE_INSTALLED, Loader::MODULE_DEMO, Loader::MODULE_DEMO_EXPIRED
См. определение в файле loader.php строка 196
◆ registerAutoLoadClasses()
static registerAutoLoadClasses |
( |
|
$moduleName, |
|
|
array |
$classes |
|
) |
| |
|
static |
Registers classes for auto loading. All the frequently used classes should be registered for auto loading (performance). It is not necessary to register rarely used classes. They can be found and loaded dynamically.
- Аргументы
-
string | $moduleName | Name of the module. Can be null if classes are not part of any module |
array | $classes | Array of classes with class names as keys and paths as values. |
- Исключения
-
См. определение в файле loader.php строка 267
◆ registerHandler()
static registerHandler |
( |
callable |
$handler | ) |
|
|
static |
Registers an additional autoload handler.
- Аргументы
-
См. определение в файле loader.php строка 327
◆ registerNamespace()
static registerNamespace |
( |
|
$namespace, |
|
|
|
$path |
|
) |
| |
|
static |
Registers namespaces with custom paths. e.g. ('Bitrix\Main\Dev', '/home/bitrix/web/site/bitrix/modules/main/dev/lib')
- Аргументы
-
string | $namespace | A namespace prefix. |
string | $path | An absolute path. |
См. определение в файле loader.php строка 297
◆ requireClass()
static requireClass |
( |
|
$className | ) |
|
|
static |
- Аргументы
-
- Исключения
-
См. определение в файле loader.php строка 456
◆ requireModule()
static requireModule |
( |
|
$moduleName | ) |
|
|
static |
Includes module by its name, throws an exception in case of failure
- Аргументы
-
- Возвращает
- bool
- Исключения
-
См. определение в файле loader.php строка 168
◆ setRequireThrowException()
static setRequireThrowException |
( |
|
$requireThrowException | ) |
|
|
static |
Changes requireModule behavior
- Аргументы
-
bool | $requireThrowException | |
См. определение в файле loader.php строка 569
◆ unregisterNamespace()
static unregisterNamespace |
( |
|
$namespace | ) |
|
|
static |
Unregisters a namespace.
- Аргументы
-
См. определение в файле loader.php строка 315
◆ $autoLoadClasses
◆ $loadedModules
$loadedModules = ["main" => true] |
|
staticprotected |
◆ $modulesHolders
$modulesHolders = ["main" => self::BITRIX_HOLDER] |
|
staticprotected |
◆ $namespaces
◆ $requireThrowException
$requireThrowException = true |
|
staticprotected |
◆ $safeModeModules
$safeModeModules = ["main" => true, "fileman" => true] |
|
staticprotected |
◆ $semiloadedModules
◆ $sharewareModules
◆ ALPHA_LOWER
const ALPHA_LOWER = "qwertyuioplkjhgfdsazxcvbnm" |
◆ ALPHA_UPPER
const ALPHA_UPPER = "QWERTYUIOPLKJHGFDSAZXCVBNM" |
◆ BITRIX_HOLDER
const BITRIX_HOLDER = "bitrix" |
◆ LOCAL_HOLDER
const LOCAL_HOLDER = "local" |
◆ MODULE_DEMO
Returned by includeSharewareModule() if module works in demo mode
См. определение в файле loader.php строка 43
◆ MODULE_DEMO_EXPIRED
const MODULE_DEMO_EXPIRED = 3 |
Returned by includeSharewareModule() if the trial period is expired
См. определение в файле loader.php строка 47
◆ MODULE_INSTALLED
const MODULE_INSTALLED = 1 |
Returned by includeSharewareModule() if module is installed
См. определение в файле loader.php строка 39
◆ MODULE_NOT_FOUND
const MODULE_NOT_FOUND = 0 |
Returned by includeSharewareModule() if module is not found
См. определение в файле loader.php строка 35
◆ SAFE_MODE
Can be used to prevent loading all modules except main and fileman
См. определение в файле loader.php строка 15