Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
componentlinksbuilder.php
1<?php
2
4
6
11{
15 public function getActionOpenLink(int $propertyId): ?string
16 {
17 return null;
18 }
19
23 public function getActionOpenClick(int $propertyId): ?string
24 {
25 return "BX.Iblock.PropertyListGrid.Instance.openDetailSlider({$propertyId});";
26 }
27
31 public function getActionDeleteLink(int $propertyId): ?string
32 {
33 return null;
34 }
35
39 public function getActionDeleteClick(int $propertyId): ?string
40 {
41 return "BX.Iblock.PropertyListGrid.Instance.delete({$propertyId});";
42 }
43
44 // custom
45
51 public function getActionCreateClick(): string
52 {
53 return 'BX.Iblock.PropertyListGrid.openCreateSliderStatic';
54 }
55
63 public function getActionCreateUrl(int $iblockId): string
64 {
65 return "/shop/settings/menu_catalog_attributes_{$iblockId}/details/0/";
66 }
67
75 public function getListUrl(int $iblockId): string
76 {
77 return "/shop/settings/menu_catalog_attributes_{$iblockId}/";
78 }
79}