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