Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
link.php
1<?php
9namespace Bitrix\Seo\Adv;
10
12
39class LinkTable extends Entity\DataManager
40{
42
48 public static function getTableName()
49 {
50 return 'b_seo_adv_link';
51 }
52
58 public static function getMap()
59 {
60 return array(
61 'LINK_TYPE' => array(
62 'data_type' => 'enum',
63 'primary' => true,
64 'values' => array(static::TYPE_IBLOCK_ELEMENT),
65 ),
66 'LINK_ID' => array(
67 'data_type' => 'integer',
68 'primary' => true,
69 ),
70 'BANNER_ID' => array(
71 'data_type' => 'integer',
72 'primary' => true,
73 ),
74 'BANNER' => array(
75 'data_type' => 'Bitrix\Seo\Adv\YandexBannerTable',
76 'reference' => array('=this.BANNER_ID' => 'ref.ID'),
77 ),
78 'IBLOCK_ELEMENT' => array(
79 'data_type' => 'Bitrix\Iblock\ElementTable',
80 'reference' => array('=this.LINK_ID' => 'ref.ID'),
81 ),
82 );
83 }
84}