Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
framemasktable.php
1<?php
2
3namespace Bitrix\Security;
4
6
23class FrameMaskTable extends \Bitrix\Main\Entity\DataManager
24{
25 public static function getTableName()
26 {
27 return 'b_sec_frame_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('FRAME_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
54 public static function getCollectionClass()
55 {
56 return FrameMasks::class;
57 }
58
59 public static function getObjectClass()
60 {
61 return FrameMask::class;
62 }
63
64 public static function deleteList(array $filter)
65 {
66 $entity = static::getEntity();
67 $connection = $entity->getConnection();
68
69 $where = Query::buildFilterSql($entity, $filter);
70 $where = $where ? 'WHERE ' . $where : '';
71
72 $sql = sprintf(
73 'DELETE FROM %s %s',
74 $connection->getSqlHelper()->quote($entity->getDbTableName()),
75 $where
76 );
77
78 $res = $connection->query($sql);
79
80 return $res;
81 }
82
83}
84
85class FrameMasks extends EO_FrameMask_Collection
86{
87}
88
89class FrameMask extends EO_FrameMask
90{
91}
static deleteList(array $filter)