Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
useraccess.php
1<?php
2
3namespace Bitrix\Main;
4
6
23class UserAccessTable extends Entity\DataManager
24{
25 public static function getTableName()
26 {
27 return 'b_user_access';
28 }
29
30 public static function getMap()
31 {
32 return array(
33 'USER_ID' => array(
34 'data_type' => 'integer',
35 'primary' => true,
36 ),
37 'PROVIDER_ID' => array(
38 'data_type' => 'string',
39 'primary' => true,
40 'validation' => array(__CLASS__, 'validateProviderId'),
41 ),
42 'ACCESS_CODE' => array(
43 'data_type' => 'string',
44 'primary' => true,
45 'validation' => array(__CLASS__, 'validateAccessCode'),
46 ),
47 );
48 }
49
50 public static function validateProviderId()
51 {
52 return array(
53 new Entity\Validator\Length(null, 50),
54 );
55 }
56
57 public static function validateAccessCode()
58 {
59 return array(
60 new Entity\Validator\Length(null, 100),
61 );
62 }
63}