1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
mailcounter.php
См. документацию.
1<?php
2
3namespace Bitrix\Mail\Internals;
4
5use Bitrix\Main\Entity;
6
24{
25 const DIR = 'DIR';
26 const MAILBOX = 'MAILBOX';
27
28 public static function getFilePath()
29 {
30 return __FILE__;
31 }
32
33 public static function getTableName()
34 {
35 return 'b_mail_counter';
36 }
37
38 public static function add($data)
39 {
40 try {
41 return parent::add($data);
42 } catch (\Exception $exception)
43 {
44 /* @TODO: Remove this block after finding a solution.
45 * Currently, when adding a value, it is checked if it already exists and updated if it does.
46 * However, several parallel requests may be executed, which will cause an error (Duplicate entry for key).
47 */
48 }
49 }
50
51 public static function getMap()
52 {
53 return array(
54 'MAILBOX_ID' => array(
55 'data_type' => 'integer',
56 'required' => true,
57 'primary' => true,
58 ),
59 'ENTITY_TYPE' => array(
60 'data_type' => 'enum',
61 'values' => array(self::DIR, self::MAILBOX),
62 'required' => true,
63 'primary' => true,
64 ),
65 'ENTITY_ID' => array(
66 'data_type' => 'string',
67 'required' => true,
68 'primary' => true,
69 ),
70 'VALUE' => array(
71 'data_type' => 'integer',
72 ),
73 );
74 }
75}
static add($data)
Определения mailcounter.php:38
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804