См. определение в файле loader.php строка 12
◆ autoLoad()
◆ clearModuleCache()
clearModuleCache |
( |
| $moduleName | ) |
|
|
static |
◆ getDocumentRoot()
Returns document root
- Возвращает
- string Document root
См. определение в файле loader.php строка 254
◆ getLocal()
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 строка 572
◆ getNamespaces()
◆ getPersonal()
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 строка 600
◆ includeComposerAutoload()
includeComposerAutoload |
( |
| ) |
|
|
static |
Include autoload.php files from composer folder.
- Возвращает
- void
См. определение в файле loader.php строка 628
◆ includeModule()
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 строка 67
◆ includeSharewareModule()
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 are 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 строка 202
◆ registerAutoLoadClasses()
registerAutoLoadClasses |
( |
| $moduleName, |
|
|
array | $classes ) |
|
static |
Registers classes for autoloading. All the frequently used classes should be registered for autoloading (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 строка 273
◆ registerClassAliases()
registerClassAliases |
( |
array | $aliases | ) |
|
|
static |
Registers class aliases for autoloading.
- Аргументы
-
array | $aliases | Array with aliases as keys and classes as values. |
См. определение в файле loader.php строка 301
◆ registerHandler()
registerHandler |
( |
callable | $handler | ) |
|
|
static |
Registers an additional autoload handler.
- Аргументы
-
См. определение в файле loader.php строка 353
◆ registerNamespace()
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 строка 323
◆ requireClass()
requireClass |
( |
| $className | ) |
|
|
static |
- Аргументы
-
- Исключения
-
См. определение в файле loader.php строка 503
◆ requireModule()
requireModule |
( |
| $moduleName | ) |
|
|
static |
Includes module by its name, throws an exception in case of failure
- Аргументы
-
- Возвращает
- bool
- Исключения
-
См. определение в файле loader.php строка 174
◆ setRequireThrowException()
setRequireThrowException |
( |
| $requireThrowException | ) |
|
|
static |
Changes requireModule behavior
- Аргументы
-
bool | $requireThrowException | |
См. определение в файле loader.php строка 618
◆ unregisterNamespace()
unregisterNamespace |
( |
| $namespace | ) |
|
|
static |
Unregisters a namespace.
- Аргументы
-
См. определение в файле loader.php строка 341
◆ $aliases
◆ $autoLoadClasses
◆ $classAliases
◆ $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 строка 32
◆ MODULE_DEMO_EXPIRED
const MODULE_DEMO_EXPIRED = 3 |
Returned by includeSharewareModule() if the trial period is expired
См. определение в файле loader.php строка 36
◆ MODULE_INSTALLED
const MODULE_INSTALLED = 1 |
Returned by includeSharewareModule() if module is installed
См. определение в файле loader.php строка 28
◆ MODULE_NOT_FOUND
const MODULE_NOT_FOUND = 0 |
Returned by includeSharewareModule() if module is not found
См. определение в файле loader.php строка 24
◆ SAFE_MODE
Can be used to prevent loading all modules except main and fileman
См. определение в файле loader.php строка 17
Объявления и описания членов класса находятся в файле: