Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
groupaccess.php
1<?php
2namespace Bitrix\Catalog;
3
6Loc::loadMessages(__FILE__);
7
37{
38 const ACCESS_BUY = 'Y';
39 const ACCESS_VIEW = 'N';
45 public static function getTableName()
46 {
47 return 'b_catalog_group2group';
48 }
49
55 public static function getMap()
56 {
57 return array(
58 'ID' => new ORM\Fields\IntegerField('ID', array(
59 'primary' => true,
60 'autocomplete' => true,
61 'title' => Loc::getMessage('GROUP_ACCESS_ENTITY_ID_FIELD')
62 )),
63 'CATALOG_GROUP_ID' => new ORM\Fields\IntegerField('CATALOG_GROUP_ID', array(
64 'required' => true,
65 'title' => Loc::getMessage('GROUP_ACCESS_ENTITY_CATALOG_GROUP_ID_FIELD')
66 )),
67 'GROUP_ID' => new ORM\Fields\IntegerField('GROUP_ID', array(
68 'required' => true,
69 'title' => Loc::getMessage('GROUP_ACCESS_ENTITY_GROUP_ID_FIELD')
70 )),
71 'ACCESS' => new ORM\Fields\BooleanField('ACCESS', array(
72 'column_name' => 'BUY',
73 'values' => array(self::ACCESS_VIEW, self::ACCESS_BUY),
74 'title' => Loc::getMessage('GROUP_ACCESS_ENTITY_ACCESS_FIELD')
75 )),
76 'CATALOG_GROUP' => new ORM\Fields\Relations\Reference(
77 'CATALOG_GROUP',
78 '\Bitrix\Catalog\Group',
79 array('=this.CATALOG_GROUP_ID' => 'ref.ID')
80 )
81 );
82 }
83}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29