Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
featureperm.php
1<?php
9
11
28class FeaturePermTable extends Entity\DataManager
29{
30 const PERM_OWNER = SONET_ROLES_OWNER;
31 const PERM_MODERATOR = SONET_ROLES_MODERATOR;
32 const PERM_USER = SONET_ROLES_USER;
33 const PERM_AUTHORIZED = SONET_ROLES_AUTHORIZED;
34 const PERM_ALL = SONET_ROLES_ALL;
35
36 public static function getTableName()
37 {
38 return 'b_sonet_features2perms';
39 }
40
41 public static function getMap()
42 {
43 $fieldsMap = [
44 'ID' => [
45 'data_type' => 'integer',
46 'primary' => true,
47 'autocomplete' => true,
48 ],
49 'FEATURE_ID' => [
50 'data_type' => 'integer'
51 ],
52 'FEATURE' => array(
53 'data_type' => '\Bitrix\Socialnetwork\Feature',
54 'reference' => [ '=this.FEATURE_ID' => 'ref.ID' ]
55 ),
56 'OPERATION_ID' => [
57 'data_type' => 'string'
58 ],
59 'ROLE' => [
60 'data_type' => 'string'
61 ],
62 ];
63
64 return $fieldsMap;
65 }
66
67}