Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factorymain.php
1
<?php
2
namespace
Bitrix\Main\Filter
;
3
4
use
Bitrix\Main\Event
;
5
use
Bitrix\Main\EventResult
;
6
7
class
FactoryMain
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
}
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\EventResult
Definition
eventresult.php:5
Bitrix\Main\Filter\FactoryMain
Definition
factorymain.php:8
Bitrix\Main\Filter\FactoryMain\onBuildFilterFactoryMethods
static onBuildFilterFactoryMethods(Event $event)
Definition
factorymain.php:9
Bitrix\Main\Filter\Filter
Definition
filter.php:5
Bitrix\Main\Filter\UserDataProvider
Definition
userdataprovider.php:10
Bitrix\Main\Filter\UserUFDataProvider
Definition
userufdataprovider.php:5
Bitrix\Main\UserTable\getUfId
static getUfId()
Definition
user.php:52
Bitrix\Main\Filter
Bitrix
modules
main
lib
filter
factorymain.php
Создано системой
1.10.0