Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
factorymain.php
1<?php
2namespace Bitrix\Main\Filter;
3
6
8{
9 public static function onBuildFilterFactoryMethods(Event $event)
10 {
11 $result = new EventResult(
12 EventResult::SUCCESS,
13 [
14 'callbacks' => [
15 \Bitrix\Main\UserTable::getUfId() => function($entityTypeName, array $settingsParams, array $additionalParams = null) {
16
17 if ($entityTypeName == \Bitrix\Main\UserTable::getUfId())
18 {
19 $settings = new \Bitrix\Main\Filter\UserSettings($settingsParams);
20 $filterID = $settings->getID();
21
22 return new \Bitrix\Main\Filter\Filter(
23 $filterID,
24 new \Bitrix\Main\Filter\UserDataProvider($settings),
25 [ new \Bitrix\Main\Filter\UserUFDataProvider($settings) ]
26 );
27
28 }
29 }
30 ]
31 ],
32 'main'
33 );
34
35 return $result;
36 }
37}
static onBuildFilterFactoryMethods(Event $event)
static getUfId()
Definition user.php:52