1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
whitelist.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Security;
4
5
use Bitrix\Main\ORM\Query\Query;
6
23
class
WhiteListTable
extends
\Bitrix\Main\Entity\DataManager
24
{
25
public
static
function
getTableName
()
26
{
27
return
'b_sec_white_list'
;
28
}
29
30
public
static
function
getMap
()
31
{
32
return
[
33
(new \Bitrix\Main\Entity\IntegerField(
'ID'
))
34
->configurePrimary()
35
->configureAutocomplete(),
36
(new \Bitrix\Main\Entity\StringField(
'WHITE_SUBSTR'
))
37
->configureSize(250)
38
];
39
}
40
41
public
static
function
getCollectionClass
()
42
{
43
return
WhiteLists::class;
44
}
45
46
public
static
function
getObjectClass
()
47
{
48
return
WhiteList::class;
49
}
50
51
public
static
function
deleteList
(
array
$filter
)
52
{
53
$entity
= static::getEntity();
54
$connection
=
$entity
->getConnection();
55
56
$where = Query::buildFilterSql(
$entity
,
$filter
);
57
$where = $where ?
'WHERE '
. $where :
''
;
58
59
$sql = sprintf(
60
'DELETE FROM %s %s'
,
61
$connection
->getSqlHelper()->quote(
$entity
->getDbTableName()),
62
$where
63
);
64
65
$res
=
$connection
->query($sql);
66
67
return
$res
;
68
}
69
70
}
71
72
class
WhiteLists
extends
EO_WhiteList_Collection
73
{
74
}
75
76
class
WhiteList
extends
EO_WhiteList
77
{
78
}
$connection
$connection
Определения
actionsdefinitions.php:38
Bitrix\Security\WhiteList
Определения
whitelist.php:77
Bitrix\Security\WhiteListTable
Определения
whitelist.php:24
Bitrix\Security\WhiteListTable\getMap
static getMap()
Определения
whitelist.php:30
Bitrix\Security\WhiteListTable\deleteList
static deleteList(array $filter)
Определения
whitelist.php:51
Bitrix\Security\WhiteListTable\getObjectClass
static getObjectClass()
Определения
whitelist.php:46
Bitrix\Security\WhiteListTable\getTableName
static getTableName()
Определения
whitelist.php:25
Bitrix\Security\WhiteListTable\getCollectionClass
static getCollectionClass()
Определения
whitelist.php:41
Bitrix\Security\WhiteLists
Определения
whitelist.php:73
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$res
$res
Определения
filter_act.php:7
$entity
$entity
Определения
group_bizproc_workflow_delete.php:17
$filter
$filter
Определения
iblock_catalog_list.php:54
bitrix
modules
security
lib
whitelist.php
Создано системой
1.14.0