1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
elementsettings.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Iblock\Filter\DataProvider\Settings
;
4
5
use
Bitrix\Main\ArgumentException
;
6
use
Bitrix\Main\Filter\Settings
;
7
8
class
ElementSettings
extends
Settings
9
{
10
private
int
$iblockId;
11
private
bool
$showSections =
true
;
12
private
bool
$showXmlId =
false
;
13
14
public
function
__construct
(
array
$params
)
15
{
16
parent::__construct(
$params
);
17
18
if
(!isset(
$params
[
'IBLOCK_ID'
]))
19
{
20
throw
new
ArgumentException
(
'Params array must be contains "IBLOCK_ID" value'
);
21
}
22
23
$this->iblockId =
$params
[
'IBLOCK_ID'
];
24
25
if
(isset(
$params
[
'SHOW_SECTIONS'
]))
26
{
27
$this->showSections =
$params
[
'SHOW_SECTIONS'
];
28
}
29
30
if
(isset(
$params
[
'SHOW_XML_ID'
]))
31
{
32
$this->showXmlId =
$params
[
'SHOW_XML_ID'
];
33
}
34
}
35
36
public
function
getIblockId
(): int
37
{
38
return
$this->iblockId
;
39
}
40
41
public
function
isShowSections
(): bool
42
{
43
return
$this->showSections;
44
}
45
46
public
function
isShowXmlId
(): bool
47
{
48
return
$this->showXmlId;
49
}
50
}
Bitrix\Iblock\Filter\DataProvider\Settings\ElementSettings
Определения
elementsettings.php:9
Bitrix\Iblock\Filter\DataProvider\Settings\ElementSettings\getIblockId
getIblockId()
Определения
elementsettings.php:36
Bitrix\Iblock\Filter\DataProvider\Settings\ElementSettings\__construct
__construct(array $params)
Определения
elementsettings.php:14
Bitrix\Iblock\Filter\DataProvider\Settings\ElementSettings\isShowXmlId
isShowXmlId()
Определения
elementsettings.php:46
Bitrix\Iblock\Filter\DataProvider\Settings\ElementSettings\isShowSections
isShowSections()
Определения
elementsettings.php:41
Bitrix\Main\ArgumentException
Определения
ArgumentException.php:9
Bitrix\Main\Filter\Settings
Определения
settings.php:6
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$iblockId
$iblockId
Определения
iblock_catalog_edit.php:30
Bitrix\Iblock\Filter\DataProvider\Settings
Определения
elementsettings.php:3
$params
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения
template.php:799
bitrix
modules
iblock
lib
filter
dataprovider
settings
elementsettings.php
Создано системой
1.14.0