1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
taskqueryparameter.php
См. документацию.
1<?php
2
4
6{
7 public const TYPE_USER = 'user';
8 public const TYPE_GROUP = 'group';
9
10 private int $ownerId;
11 private int $userId;
12 private string $type = '';
13
14 public function __construct(int $userId = 0)
15 {
16 $this->userId = $userId;
17 }
18
19 public function getOwnerId(): int
20 {
21 return $this->ownerId;
22 }
23
24 public function setOwnerId(int $ownerId): static
25 {
26 $this->ownerId = $ownerId;
27 return $this;
28 }
29
30 public function getUserId(): int
31 {
32 return $this->userId;
33 }
34
35 public function getType(): string
36 {
37 return $this->type;
38 }
39
40 public function setType(string $type): static
41 {
42 $this->type = $type;
43 return $this;
44 }
45
46 public function isUserType(): bool
47 {
48 return $this->type === static::TYPE_USER;
49 }
50
51 public function isGroupType(): bool
52 {
53 return $this->type === static::TYPE_GROUP;
54 }
55}
$type
Определения options.php:106
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18