1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CatalogRuleFactory.php
См. документацию.
1<?php
2
4
8
10{
11 protected const BASE_RULE = 'Base';
12
13 protected function getClassName(string $action, AccessibleController $controller): ?string
14 {
16 if (!$actionName)
17 {
18 return null;
19 }
20
21 $action = explode('_', $actionName);
22 $action = array_map(fn($el) => ucfirst(mb_strtolower($el)), $action);
23
24 $ruleClass = $this->getNamespace($controller) . implode($action) . static::SUFFIX;
25
26 if (class_exists($ruleClass))
27 {
28 return $ruleClass;
29 }
30
31 return $this->getNamespace($controller) . static::BASE_RULE . static::SUFFIX;
32 }
33}
static getActionRuleName(string $value)
Определения ActionDictionary.php:191
getClassName(string $action, AccessibleController $controller)
Определения CatalogRuleFactory.php:13
getNamespace(AccessibleController $controller)
Определения rulecontrollerfactory.php:39
$action
Определения file_dialog.php:21