configurePrimary(), (new \Bitrix\Main\Entity\StringField('RULE_MASK')) ->configurePrimary() ->configureSize(250), (new \Bitrix\Main\Entity\IntegerField('SORT')) ->configureDefaultValue(500), (new \Bitrix\Main\Entity\StringField('LIKE_MASK')) ->configureSize(250) ->configureNullable(), (new \Bitrix\Main\Entity\StringField('PREG_MASK')) ->configureSize(250) ->configureNullable(), ]; } public static function getCollectionClass() { return IPRuleExclMasks::class; } public static function getObjectClass() { return IPRuleExclMask::class; } public static function deleteList(array $filter) { $entity = static::getEntity(); $connection = $entity->getConnection(); $where = Query::buildFilterSql($entity, $filter); $where = $where ? 'WHERE ' . $where : ''; $sql = sprintf( 'DELETE FROM %s %s', $connection->getSqlHelper()->quote($entity->getDbTableName()), $where ); $res = $connection->query($sql); return $res; } } class IPRuleExclMasks extends EO_IPRuleExclMask_Collection { } class IPRuleExclMask extends EO_IPRuleExclMask { }