Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
entitysettings.php
1<?php
2namespace Bitrix\Main\Filter;
3
4abstract class EntitySettings extends Settings
5{
6 const FLAG_NONE = 0;
7
9 protected $flags = 0;
10
11 function __construct(array $params)
12 {
13 parent::__construct($params);
14
15 $this->flags = isset($params['flags'])
16 ? (int)$params['flags'] : self::FLAG_NONE;
17 }
22 abstract public function getEntityTypeName();
23
28 abstract public function getUserFieldEntityID();
29
35 public function checkFlag($flag)
36 {
37 return ($this->flags & $flag) === $flag;
38 }
39}