Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sitetemplate.php
1<?php
2namespace Bitrix\Main;
3
5
7{
8 protected $id;
9
10 public function __construct($id)
11 {
12 $this->id = $id;
13 }
14}
15
32class SiteTemplateTable extends Entity\DataManager
33{
34 public static function getTableName()
35 {
36 return 'b_site_template';
37 }
38
39 public static function getMap()
40 {
41 return array(
42 'ID' => array(
43 'data_type' => 'integer',
44 'primary' => true,
45 'autocomplete' => true,
46 ),
47 'SITE_ID' => array(
48 'data_type' => 'string',
49 ),
50 'CONDITION' => array(
51 'data_type' => 'string'
52 ),
53 'SORT' => array(
54 'data_type' => 'integer',
55 ),
56 'TEMPLATE' => array(
57 'data_type' => 'string'
58 ),
59 'SITE' => array(
60 'data_type' => 'Bitrix\Main\Site',
61 'reference' => array('=this.SITE_ID' => 'ref.LID'),
62 ),
63 );
64 }
65}