Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
application.php
1
<?php
2
3
namespace
Bitrix\Rest\Controller
;
4
5
use
Bitrix\Main\Engine\Controller
;
6
use
Bitrix\Rest\Marketplace
;
7
use
Bitrix\Main\Engine\ActionFilter
;
8
9
class
Application
extends
Controller
10
{
11
public
function
installAction
($code, $version =
false
, $checkHash =
false
, $installHash =
false
, $from =
null
)
12
{
13
$result = Marketplace\Application::install($code, $version, $checkHash, $installHash, $from);
14
if
($result[
'errorDescription'
])
15
{
16
$result[
'error_description'
] = $result[
'errorDescription'
];
17
}
18
19
return
$result;
20
}
21
22
public
function
uninstallAction
($code, $clean =
'N'
, $from =
null
)
23
{
24
return
Marketplace\Application::uninstall($code, ($clean ===
'Y'
), $from);
25
}
26
27
public
function
reinstallAction
($id)
28
{
29
return
Marketplace\Application::reinstall($id);
30
}
31
32
public
function
setRightsAction
($appId, $rights)
33
{
34
return
Marketplace\Application::setRights($appId, $rights);
35
}
36
37
public
function
getRightsAction
($appId)
38
{
39
return
Marketplace\Application::getRights($appId);
40
}
41
46
protected
function
getDefaultPreFilters
()
47
{
48
$defaultPreFilters = parent::getDefaultPreFilters();
49
$defaultPreFilters[] =
new
ActionFilter\Scope(ActionFilter\Scope::NOT_REST);
50
51
return
$defaultPreFilters;
52
}
53
}
Bitrix\Main\Application
Definition
application.php:28
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Rest\Controller\Application\getDefaultPreFilters
getDefaultPreFilters()
Definition
application.php:46
Bitrix\Rest\Controller\Application\setRightsAction
setRightsAction($appId, $rights)
Definition
application.php:32
Bitrix\Rest\Controller\Application\getRightsAction
getRightsAction($appId)
Definition
application.php:37
Bitrix\Rest\Controller\Application\reinstallAction
reinstallAction($id)
Definition
application.php:27
Bitrix\Rest\Controller\Application\uninstallAction
uninstallAction($code, $clean='N', $from=null)
Definition
application.php:22
Bitrix\Rest\Controller\Application\installAction
installAction($code, $version=false, $checkHash=false, $installHash=false, $from=null)
Definition
application.php:11
Bitrix\Main\Engine\ActionFilter
Definition
authentication.php:4
Bitrix\Rest\Controller
Definition
application.php:3
Bitrix\Rest\Marketplace
Definition
application.php:3
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
rest
lib
controller
application.php
Создано системой
1.10.0