1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
AuthorizeUserCommand.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
7use \Bitrix\Main;
8
10{
11 public function __construct(
12 public readonly int $userId,
13 public readonly ?int $applicationId,
14 public readonly ?Main\Type\DateTime $timePeriod = null,
15 )
16 {
17 }
18
19 protected function execute(): Main\Result
20 {
21 $result = new Main\Result();
22 try
23 {
24 (new AuthorizeUserCommandHandler())($this);
25 }
27 {
28 $result->addError(new Main\Error($e->getMessage(), $e->getCode()));
29 }
30
31 return $result;
32 }
33
34 public function toArray(): array
35 {
36 return [
37 'userId' => $this->userId,
38 'applicationId' => $this->applicationId,
39 ];
40 }
41}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
Определения error.php:15
__construct(public readonly int $userId, public readonly ?int $applicationId, public readonly ?Main\Type\DateTime $timePeriod=null,)
Определения AuthorizeUserCommand.php:11
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
Определения collection.php:2