Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sitecheck.php
1<?php
2
3namespace Bitrix\Security;
4
6
23class SiteCheckTable extends \Bitrix\Main\Entity\DataManager
24{
25 public static function getTableName()
26 {
27 return 'b_security_sitecheck';
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\DatetimeField('TEST_DATE'))
37 ->configureNullable(),
38 (new \Bitrix\Main\Entity\TextField('RESULTS'))
39 ->configureNullable()
40 ->configureLong(),
41 ];
42 }
43
44 public static function getCollectionClass()
45 {
46 return SiteChecks::class;
47 }
48
49 public static function getObjectClass()
50 {
51 return SiteCheck::class;
52 }
53
54 public static function deleteList(array $filter)
55 {
56 $entity = static::getEntity();
57 $connection = $entity->getConnection();
58
59 $where = Query::buildFilterSql($entity, $filter);
60 $where = $where ? 'WHERE ' . $where : '';
61
62 $sql = sprintf(
63 'DELETE FROM %s %s',
64 $connection->getSqlHelper()->quote($entity->getDbTableName()),
65 $where
66 );
67
68 $res = $connection->query($sql);
69
70 return $res;
71 }
72
73}
74
75class SiteChecks extends EO_SiteCheck_Collection
76{
77}
78
79class SiteCheck extends EO_SiteCheck
80{
81}
static deleteList(array $filter)
Definition sitecheck.php:54