Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sitedomain.php
1<?php
8namespace Bitrix\Main;
9
12
29class SiteDomainTable extends Entity\DataManager
30{
31 public static function getTableName()
32 {
33 return 'b_lang_domain';
34 }
35
36 public static function getMap()
37 {
38 return array(
39 'LID' => array(
40 'data_type' => 'string',
41 'primary' => true,
42 ),
43 'DOMAIN' => array(
44 'data_type' => 'string',
45 'primary' => true,
46 ),
47 'SITE' => array(
48 'data_type' => 'Bitrix\Main\Site',
49 'reference' => array('=this.LID' => 'ref.LID'),
50 ),
51 new Fields\ExpressionField('DOMAIN_LENGTH', 'LENGTH(%s)', 'DOMAIN'),
52 );
53 }
54}