Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
userfieldconfirm.php
1<?php
2namespace Bitrix\Main;
3
5
34class UserFieldConfirmTable extends Entity\DataManager
35{
37 public static function getTableName()
38 {
39 return 'b_user_field_confirm';
40 }
41
42 public static function getMap()
43 {
44 return array(
45 'ID' => array(
46 'data_type' => 'integer',
47 'primary' => true,
48 'autocomplete' => true,
49 ),
50 'USER_ID' => array(
51 'data_type' => 'integer',
52 'required' => true,
53 ),
54 'DATE_CHANGE' => array(
55 'data_type' => 'datetime',
56 ),
57 'FIELD' => array(
58 'data_type' => 'string',
59 'required' => true,
60 ),
61 'FIELD_VALUE' => array(
62 'data_type' => 'string',
63 'required' => true,
64 ),
65 'CONFIRM_CODE' => array(
66 'data_type' => 'string',
67 'required' => true,
68 'validation' => array(__CLASS__, 'validateConfirmCode'),
69 ),
70 "ATTEMPTS" => array(
71 'data_type' => 'integer',
72 "default_value" => 0,
73 ),
74 );
75 }
76
77 public static function validateConfirmCode()
78 {
79 return array(
80 new Entity\Validator\Length(null, 32),
81 );
82 }
83}