Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
messagedeletequeue.php
1<?php
2
4
8
26{
27
28 public static function getFilePath()
29 {
30 return __FILE__;
31 }
32
33 public static function getTableName()
34 {
35 return 'b_mail_message_delete_queue';
36 }
37
38 public static function deleteList(array $filter)
39 {
40 $entity = static::getEntity();
41 $connection = $entity->getConnection();
42
43 return $connection->query(sprintf(
44 'DELETE FROM %s WHERE %s',
45 $connection->getSqlHelper()->quote($entity->getDbTableName()),
46 ORM\Query\Query::buildFilterSql($entity, $filter)
47 ));
48 }
49
50 public static function getMap()
51 {
52 return array(
53 'ID' => array(
54 'data_type' => 'integer',
55 'primary' => true,
56 'autocomplete' => true,
57 ),
58 'MAILBOX_ID' => array(
59 'data_type' => 'integer',
60 'required' => true,
61 ),
62 'MESSAGE_ID' => array(
63 'data_type' => 'integer',
64 'required' => true,
65 ),
66 );
67 }
68
69}