Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
loadext.php
1
<?
2
namespace
Bitrix\Main\Controller
;
3
4
use
Bitrix\Main\Engine
;
5
use
Bitrix\Main\Engine\ActionFilter\Authentication
;
6
use
Bitrix\Main\Engine\ActionFilter\CloseSession
;
7
use
Bitrix\Main\UI\Extension
;
8
13
class
LoadExt
extends
Engine\Controller
14
{
19
public
function
configureActions
()
20
{
21
return
[
22
'getExtensions'
=> [
23
'+prefilters'
=> [
24
new
CloseSession
()
25
],
26
'-prefilters'
=> [
27
Authentication::class
28
]
29
]
30
];
31
}
32
39
public
function
getExtensionsAction
($extension = [])
40
{
41
$result = [];
42
43
if
(!empty($extension) && is_array($extension))
44
{
45
foreach
($extension as $key => $item)
46
{
47
$result[] = [
48
'extension'
=> $item,
49
'config'
=> Extension::getBundleConfig($item),
50
'html'
=> Extension::getHtml($item),
51
];
52
}
53
}
54
55
return
$result;
56
}
57
}
Bitrix\Main\Controller\LoadExt
Definition
loadext.php:14
Bitrix\Main\Controller\LoadExt\configureActions
configureActions()
Definition
loadext.php:19
Bitrix\Main\Controller\LoadExt\getExtensionsAction
getExtensionsAction($extension=[])
Definition
loadext.php:39
Bitrix\Main\DB\Connection\$host
$host
Definition
connection.php:29
Bitrix\Main\Engine\ActionFilter\Authentication
Definition
authentication.php:14
Bitrix\Main\Engine\ActionFilter\CloseSession
Definition
closesession.php:13
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\UI\Extension
Definition
extension.php:11
Bitrix\Main\Controller
Definition
agreement.php:2
Bitrix\Main\Engine
Definition
action.php:3
modules
main
lib
controller
loadext.php
Создано системой
1.10.0