Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
oauth.php
1<?php
2
4
6
24{
25
26 public static function getFilePath()
27 {
28 return __FILE__;
29 }
30
31 public static function getTableName()
32 {
33 return 'b_mail_oauth';
34 }
35
36 public static function getMap()
37 {
38 return array(
39 'ID' => array(
40 'data_type' => 'integer',
41 'primary' => true,
42 'autocomplete' => true,
43 ),
44 'UID' => array(
45 'data_type' => 'string',
46 ),
47 'TOKEN' => array(
48 'data_type' => (static::cryptoEnabled('TOKENS') ? 'crypto' : 'text'),
49 ),
50 'REFRESH_TOKEN' => array(
51 'data_type' => (static::cryptoEnabled('TOKENS') ? 'crypto' : 'text'),
52 ),
53 'TOKEN_EXPIRES' => array(
54 'data_type' => 'integer',
55 ),
56 'SECRET' => array(
57 'data_type' => 'string',
58 ),
59 );
60 }
61
62}