Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
domainverification.php
1<?php
3
5
34class DomainVerificationTable extends Main\Entity\DataManager
35{
41 public static function getTableName()
42 {
43 return 'b_sale_domain_verification';
44 }
45
51 public static function getMap()
52 {
53 return array(
54 'ID' => array(
55 'data_type' => 'integer',
56 'primary' => true,
57 'autocomplete' => true,
58 ),
59 'DOMAIN' => array(
60 'data_type' => 'string',
61 'required' => true,
62 'validation' => array(__CLASS__, 'validateDomain'),
63 ),
64 'PATH' => array(
65 'data_type' => 'string',
66 'required' => true,
67 'validation' => array(__CLASS__, 'validatePath'),
68 ),
69 'CONTENT' => array(
70 'data_type' => 'text',
71 ),
72 'ENTITY' => array(
73 'data_type' => 'string',
74 'required' => true,
75 'validation' => array(__CLASS__, 'validateEntity'),
76 ),
77 );
78 }
79
86 public static function validateDomain()
87 {
88 return array(
89 new Main\Entity\Validator\Length(null, 255),
90 );
91 }
92
99 public static function validatePath()
100 {
101 return array(
102 new Main\Entity\Validator\Length(null, 255),
103 );
104 }
105
112 public static function validateEntity()
113 {
114 return array(
115 new Main\Entity\Validator\Length(null, 1024),
116 );
117 }
118}