Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
mailcounter.php
1<?php
2
4
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 getMap()
39 {
40 return array(
41 'MAILBOX_ID' => array(
42 'data_type' => 'integer',
43 'required' => true,
44 'primary' => true,
45 ),
46 'ENTITY_TYPE' => array(
47 'data_type' => 'enum',
48 'values' => array(self::DIR, self::MAILBOX),
49 'required' => true,
50 'primary' => true,
51 ),
52 'ENTITY_ID' => array(
53 'data_type' => 'string',
54 'required' => true,
55 'primary' => true,
56 ),
57 'VALUE' => array(
58 'data_type' => 'integer',
59 ),
60 );
61 }
62}