1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
filtermasktable.php
См. документацию.
1<?php
2
3namespace Bitrix\Security;
4
5use Bitrix\Main\ORM\Query\Query;
6
23class FilterMaskTable extends \Bitrix\Main\Entity\DataManager
24{
25 public static function getTableName()
26 {
27 return 'b_sec_filter_mask';
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\IntegerField('SORT'))
37 ->configureDefaultValue(10),
38 (new \Bitrix\Main\Entity\StringField('SITE_ID'))
39 ->configureSize(2)
40 ->configureNullable(),
41 (new \Bitrix\Main\Entity\StringField('FILTER_MASK'))
42 ->configureSize(250)
43 ->configureNullable(),
44 (new \Bitrix\Main\Entity\StringField('LIKE_MASK'))
45 ->configureSize(250)
46 ->configureNullable(),
47 (new \Bitrix\Main\Entity\StringField('PREG_MASK'))
48 ->configureSize(250)
49 ->configureNullable(),
50 ];
51 }
52
53 public static function getCollectionClass()
54 {
55 return FilterMasks::class;
56 }
57
58 public static function getObjectClass()
59 {
60 return FilterMask::class;
61 }
62
63 public static function deleteList(array $filter)
64 {
65 $entity = static::getEntity();
66 $connection = $entity->getConnection();
67
68 $where = Query::buildFilterSql($entity, $filter);
69 $where = $where ? 'WHERE ' . $where : '';
70
71 $sql = sprintf(
72 'DELETE FROM %s %s',
73 $connection->getSqlHelper()->quote($entity->getDbTableName()),
74 $where
75 );
76
77 $res = $connection->query($sql);
78
79 return $res;
80 }
81
82}
83
84class FilterMasks extends EO_FilterMask_Collection
85{
86}
87
88class FilterMask extends EO_FilterMask
89{
90}
$connection
Определения actionsdefinitions.php:38
static deleteList(array $filter)
Определения filtermasktable.php:63
static getObjectClass()
Определения filtermasktable.php:58
static getTableName()
Определения filtermasktable.php:25
static getCollectionClass()
Определения filtermasktable.php:53
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$res
Определения filter_act.php:7
$entity
$filter
Определения iblock_catalog_list.php:54