21 public function registerAction(array $data, array $option = [], CRestServer $server =
null)
23 $import =
new Action\Import();
26 if ($server instanceof CRestServer && $server->getAuthType() === Auth::AUTH_TYPE)
28 $appCode = $server->getClientId();
29 $auth = $server->getAuthData();
30 if (!empty($auth[
'user_id']))
32 $userId = (int)$auth[
'user_id'];
39 $userId = $USER->getId();
42 return $import->register($data, $option, $userId, $appCode);