Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
contextentityitem.php
1<?php
2
4
6
23class ContextEntityItemTable extends Entity\DataManager
24{
25 public static function getTableName()
26 {
27 return 'b_conv_context_entity_item';
28 }
29
30 public static function getMap()
31 {
32 return array(
33 new Entity\IntegerField('CONTEXT_ID', array('primary' => true)),
34 new Entity\StringField ('ENTITY' , array('primary' => true, 'size' => 30)),
35 new Entity\StringField ('ITEM' , array('primary' => true, 'size' => 30)),
36
37 new Entity\ReferenceField('CONTEXT', 'ContextTable',
38 array('=this.CONTEXT_ID' => 'ref.ID'),
39 array('join_type' => 'INNER')
40 ),
41 );
42 }
43
44 public static function getFilePath()
45 {
46 return __FILE__;
47 }
48}