File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/catalog/lib/Access/Rule/Factory/CatalogRuleFactory.php
Back
<?php namespace Bitrix\Catalog\Access\Rule\Factory; use Bitrix\Catalog\Access\ActionDictionary; use Bitrix\Main\Access\AccessibleController; use Bitrix\Main\Access\Rule\Factory\RuleControllerFactory; class CatalogRuleFactory extends RuleControllerFactory { protected const BASE_RULE = 'Base'; protected function getClassName(string $action, AccessibleController $controller): ?string { $actionName = ActionDictionary::getActionRuleName($action); if (!$actionName) { return null; } $action = explode('_', $actionName); $action = array_map(fn($el) => ucfirst(mb_strtolower($el)), $action); $ruleClass = $this->getNamespace($controller) . implode($action) . static::SUFFIX; if (class_exists($ruleClass)) { return $ruleClass; } return $this->getNamespace($controller) . static::BASE_RULE . static::SUFFIX; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings