1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
mailmessageattachment.php
См. документацию.
1<?php
2
3namespace Bitrix\Mail\Internals;
4
5use Bitrix\Main\DB\Result;
6use Bitrix\Main\Entity;
7use Bitrix\Main\Entity\Query;
8
26{
27 private static function deleteList(array $filter): Result
28 {
29 $entity = static::getEntity();
30 $connection = $entity->getConnection();
31
32 return $connection->query(sprintf(
33 'DELETE FROM %s WHERE %s',
34 $connection->getSqlHelper()->quote($entity->getDbTableName()),
35 Query::buildFilterSql($entity, $filter)
36 ));
37 }
38
44 public static function deleteByIds(int $messageId, array $ids): Result
45 {
46 return self::deleteList([
47 '=MESSAGE_ID' => $messageId,
48 '@ID' => $ids,
49 ]);
50 }
51
52 public static function deleteAll(int $messageId): Result
53 {
54 return self::deleteList([
55 '=MESSAGE_ID' => $messageId,
56 ]);
57 }
58
59 public static function getFilePath()
60 {
61 return __FILE__;
62 }
63
64 public static function getTableName()
65 {
66 return 'b_mail_msg_attachment';
67 }
68
69 public static function getMap()
70 {
71 return array(
72 'ID' => array(
73 'data_type' => 'integer',
74 'primary' => true,
75 'autocomplete' => true,
76 ),
77 'MESSAGE_ID' => array(
78 'data_type' => 'integer',
79 'required' => true,
80 ),
81 'FILE_ID' => array(
82 'data_type' => 'integer',
83 ),
84 'FILE_NAME' => array(
85 'data_type' => 'string',
86 ),
87 'FILE_SIZE' => array(
88 'data_type' => 'integer',
89 ),
90 'FILE_DATA' => array(
91 'data_type' => 'string',
92 ),
93 'CONTENT_TYPE' => array(
94 'data_type' => 'string',
95 ),
96 'IMAGE_WIDTH' => array(
97 'data_type' => 'integer',
98 ),
99 'IMAGE_HEIGHT' => array(
100 'data_type' => 'integer',
101 ),
102 );
103 }
104
105}
$connection
Определения actionsdefinitions.php:38
if(! $messageFields||!isset($messageFields['message_id'])||!isset($messageFields['status'])||!CModule::IncludeModule("messageservice")) $messageId
Определения callback_ismscenter.php:26
static deleteByIds(int $messageId, array $ids)
Определения mailmessageattachment.php:44
Определения result.php:20
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$filter
Определения iblock_catalog_list.php:54