1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
StoreViewRule.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Catalog\Access\Rule;
4
5
use Bitrix\Catalog\Access\Model\StoreDocumentElement;
6
use \Bitrix\Catalog\Access\Permission\PermissionDictionary;
7
8
class
StoreViewRule
extends
VariableRule
9
{
10
protected
function
loadAvailableValues
():
array
11
{
12
return
array_column(PermissionDictionary::getStoreVariables(),
'id'
);
13
}
14
15
protected
function
check
(
$params
): bool
16
{
17
$item =
$params
[
'item'
] ??
null
;
18
if
($item instanceof
StoreDocumentElement
)
19
{
20
$params
[
'value'
] = $item->getStoreIds();
21
}
22
23
return
parent::check(
$params
);
24
}
25
}
Bitrix\Catalog\Access\Model\StoreDocumentElement
Определения
StoreDocumentElement.php:9
Bitrix\Catalog\Access\Rule\StoreViewRule
Определения
StoreViewRule.php:9
Bitrix\Catalog\Access\Rule\StoreViewRule\check
check($params)
Определения
StoreViewRule.php:15
Bitrix\Catalog\Access\Rule\StoreViewRule\loadAvailableValues
loadAvailableValues()
Определения
StoreViewRule.php:10
Bitrix\Catalog\Access\Rule\VariableRule
Определения
VariableRule.php:23
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$params
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения
template.php:799
bitrix
modules
catalog
lib
Access
Rule
StoreViewRule.php
Создано системой
1.14.0