33 (new \Bitrix\Main\Entity\IntegerField(
'ID'))
35 ->configureAutocomplete(),
36 (new \Bitrix\Main\Entity\StringField(
'RULE_TYPE'))
38 ->configureDefaultValue(
'M'),
39 (new \Bitrix\Main\Entity\EnumField(
'ACTIVE'))
40 ->configureValues([
'Y',
'N'])
41 ->configureDefaultValue(
'Y'),
42 (new \Bitrix\Main\Entity\EnumField(
'ADMIN_SECTION'))
43 ->configureValues([
'Y',
'N'])
44 ->configureDefaultValue(
'Y'),
45 (new \Bitrix\Main\Entity\StringField(
'SITE_ID'))
47 ->configureNullable(),
48 (new \Bitrix\Main\Entity\IntegerField(
'SORT'))
49 ->configureDefaultValue(500),
50 (new \Bitrix\Main\Entity\DatetimeField(
'ACTIVE_FROM'))
51 ->configureNullable(),
52 (new \Bitrix\Main\Entity\IntegerField(
'ACTIVE_FROM_TIMESTAMP'))
53 ->configureNullable(),
54 (new \Bitrix\Main\Entity\DatetimeField(
'ACTIVE_TO'))
55 ->configureNullable(),
56 (new \Bitrix\Main\Entity\IntegerField(
'ACTIVE_TO_TIMESTAMP'))
57 ->configureNullable(),
58 (new \Bitrix\Main\Entity\StringField(
'NAME'))
76 $entity = static::getEntity();
77 $connection = $entity->getConnection();
79 $where = Query::buildFilterSql($entity, $filter);
80 $where = $where ?
'WHERE ' . $where :
'';
84 $connection->getSqlHelper()->quote($entity->getDbTableName()),
88 $res = $connection->query($sql);