См. определение в файле component_engine.php строка 9
◆ __construct()
__construct |
( |
| $component = null | ) |
|
Constructor.
Takes component as parameter and initializing the object.
- Аргументы
-
См. определение в файле component_engine.php строка 22
◆ __checkPath4Template()
__checkPath4Template |
( |
| $pageTemplate, |
|
|
| $currentPageUrl, |
|
|
& | $arVariables ) |
|
protected |
Checks if page template matches current URL.
In case of succsessful match fills in parsed variables.
- Аргументы
-
string | $pageTemplate | |
string | $currentPageUrl | |
| array[string]string | &$arVariables |
- Возвращает
- bool
См. определение в файле component_engine.php строка 157
◆ addGreedyPart()
Marks one of the page templates parts as greedy (may contain "/" separator).
- Аргументы
-
- Возвращает
- void
См. определение в файле component_engine.php строка 44
◆ checkComponentName()
checkComponentName |
( |
| $componentName | ) |
|
|
static |
Checks if component name is valid.
Component name consists of namespace part, separator and name. Example: bitrix:news.list
- Аргументы
-
- Возвращает
- bool
См. определение в файле component_engine.php строка 70
◆ getComponent()
◆ guessComponentPath()
guessComponentPath |
( |
| $folder404, |
|
|
| $arUrlTemplates, |
|
|
& | $arVariables, |
|
|
| $requestURL = false ) |
Finds match between requestURL and on of the url templates.
Lets using the engine object and greedy templates.
- Аргументы
-
string | $folder404 | |
| array[string]string | $arUrlTemplates |
| array[string]string | &$arVariables |
string | bool | $requestURL | |
- Возвращает
- string
См. определение в файле component_engine.php строка 212
◆ hasGreedyParts()
hasGreedyParts |
( |
| $pageTemplate | ) |
|
Checks if page template.has greedy templates it it.
- Аргументы
-
- Возвращает
- bool
См. определение в файле component_engine.php строка 106
◆ hasNoVariables()
hasNoVariables |
( |
| $pageTemplate | ) |
|
Checks if page template has templates in it.
- Аргументы
-
- Возвращает
- bool
См. определение в файле component_engine.php строка 95
◆ initComponentVariables()
initComponentVariables |
( |
| $componentPage, |
|
|
| $arComponentVariables, |
|
|
| $arVariableAliases, |
|
|
& | $arVariables ) |
|
static |
Initializes component variables from $_REQUEST based on component page selected.
- Аргументы
-
string | $componentPage | |
| array[string]string | $arComponentVariables |
| array[string]string | $arVariableAliases |
| array[string]string | &$arVariables |
- Возвращает
- void
См. определение в файле component_engine.php строка 283
◆ makeComponentPath()
makeComponentPath |
( |
| $componentName | ) |
|
|
static |
Makes filesystem relative path out of com name.
- Аргументы
-
- Возвращает
- string
См. определение в файле component_engine.php строка 81
◆ makeComponentUrlTemplates()
makeComponentUrlTemplates |
( |
| $arDefaultUrlTemplates, |
|
|
| $arCustomUrlTemplates ) |
|
static |
Prepares templates based on default and provided.
- Аргументы
-
array[string]string | $arDefaultUrlTemplates |
array[string]string | $arCustomUrlTemplates |
- Возвращает
- array[string]string
См. определение в файле component_engine.php строка 325
◆ makeComponentVariableAliases()
makeComponentVariableAliases |
( |
| $arDefaultVariableAliases, |
|
|
| $arCustomVariableAliases ) |
|
static |
Prepares variables based on default and provided.
- Аргументы
-
array[string]string | $arDefaultVariableAliases |
array[string]string | $arCustomVariableAliases |
- Возвращает
- array[string]string
См. определение в файле component_engine.php строка 340
◆ makePathFromTemplate()
makePathFromTemplate |
( |
| $template, |
|
|
| $arParams = array() ) |
|
static |
Replaces templates in provided string based on parameters
- Аргументы
-
string | $template | |
| array[string]string | $arParams |
- Возвращает
- string
См. определение в файле component_engine.php строка 355
◆ parseComponentPath()
parseComponentPath |
( |
| $folder404, |
|
|
| $arUrlTemplates, |
|
|
& | $arVariables, |
|
|
| $requestURL = false ) |
|
static |
Finds match between requestURL and on of the url templates.
- Аргументы
-
string | $folder404 | |
| array[string]string | $arUrlTemplates |
| array[string]string | &$arVariables |
string | bool | $requestURL | |
- Возвращает
- string
См. определение в файле component_engine.php строка 196
◆ setResolveCallback()
setResolveCallback |
( |
| $resolveCallback | ) |
|
Registers callback with will be called on page indetermination.
- Аргументы
-
- Возвращает
- void
См. определение в файле component_engine.php строка 57
◆ sortUrlTemplates()
sortUrlTemplates |
( |
| $arUrlTemplates, |
|
|
& | $bHasGreedyPartsInTemplates ) |
|
protected |
Sorts templates for inspection.
First will be templates without any variables. Then templates without greedy parts. Then greedy ones.
- Аргументы
-
| array[string]string | $arUrlTemplates |
bool | &$bHasGreedyPartsInTemplates | |
- Возвращает
- array[string]string
См. определение в файле component_engine.php строка 125
◆ $cacheSalt
Объявления и описания членов класса находятся в файле: