1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
import.php
См. документацию.
1<?php
2
4
10use CRestServer;
11
12class Import extends Controller
13{
21 public function registerAction(array $data, array $option = [], CRestServer $server = null)
22 {
23 $import = new Action\Import();
24 $userId = 0;
25 $appCode = '';
26 if ($server instanceof CRestServer && $server->getAuthType() === Auth::AUTH_TYPE)
27 {
28 $appCode = $server->getClientId();
29 $auth = $server->getAuthData();
30 if (!empty($auth['user_id']))
31 {
32 $userId = (int)$auth['user_id'];
33 }
34 }
35
36 if ($userId === 0)
37 {
38 global $USER;
39 $userId = $USER->getId();
40 }
41
42 return $import->register($data, $option, $userId, $appCode);
43 }
44
52 {
53 $import = new Action\Import($processId);
54 return $import->unregister();
55 }
56
63 public function getAction($processId): array
64 {
65 $import = new Action\Import($processId);
66 return $import->get();
67 }
68
80}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
Определения auth.php:22
const AUTH_TYPE
Определения auth.php:23
getAction($processId)
Определения import.php:63
registerAction(array $data, array $option=[], CRestServer $server=null)
Определения import.php:21
unregisterAction($processId)
Определения import.php:51
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$auth
Определения get_user.php:29
global $USER
Определения csv_new_run.php:40
$option
Определения options.php:1711