Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
application.php
1<?php
2
4
8
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}
uninstallAction($code, $clean='N', $from=null)
installAction($code, $version=false, $checkHash=false, $installHash=false, $from=null)