1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
messageclosure.php
См. документацию.
1<?php
2
3namespace Bitrix\Mail\Internals;
4
5use Bitrix\Main\Entity;
6
24{
25
26 public static function getFilePath()
27 {
28 return __FILE__;
29 }
30
31 public static function getTableName()
32 {
33 return 'b_mail_message_closure';
34 }
35
36 public static function getMap()
37 {
38 return array(
39 'MESSAGE_ID' => array(
40 'data_type' => 'integer',
41 'primary' => true,
42 ),
43 'PARENT_ID' => array(
44 'data_type' => 'integer',
45 'primary' => true,
46 ),
47 );
48 }
49
57 public static function insertIgnoreFromSelect(string $fromSelect): int
58 {
59 return self::insertIgnoreFromSql("($fromSelect)");
60 }
61
69 public static function insertIgnoreFromSql(string $sql): int
70 {
72 $sql = $connection->getSqlHelper()
73 ->getInsertIgnore(self::getTableName(), ' (MESSAGE_ID, PARENT_ID) ', $sql);
74 $connection->query($sql);
75
76 return $connection->getAffectedRowsCount();
77 }
78
79}
$connection
Определения actionsdefinitions.php:38
static insertIgnoreFromSql(string $sql)
Определения messageclosure.php:69
static insertIgnoreFromSelect(string $fromSelect)
Определения messageclosure.php:57
static getConnection($name="")
Определения application.php:638
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804