1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
BaseUserDto.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Vote\Model\Dto;
4
5
use Bitrix\Main\Type\Contract\Arrayable;
6
7
class
BaseUserDto
implements
Arrayable
, \JsonSerializable
8
{
9
public
function
__construct
(
10
public
readonly
int
$id,
11
public
readonly ?
string
$name
,
12
public
readonly ?
string
$image,
13
public
readonly ?
string
$workPosition,
14
)
15
{}
16
17
public
function
toArray
():
array
18
{
19
return
[
20
'ID'
=> $this->id,
21
'NAME'
=>
$this->name
,
22
'IMAGE'
=> $this->image,
23
'WORK_POSITION'
=> $this->workPosition,
24
];
25
}
26
27
public
function
jsonSerialize
():
array
28
{
29
return
$this->
toArray
();
30
}
31
}
Bitrix\Vote\Model\Dto\BaseUserDto
Определения
BaseUserDto.php:8
Bitrix\Vote\Model\Dto\BaseUserDto\toArray
toArray()
Определения
BaseUserDto.php:17
Bitrix\Vote\Model\Dto\BaseUserDto\jsonSerialize
jsonSerialize()
Определения
BaseUserDto.php:27
Bitrix\Vote\Model\Dto\BaseUserDto\__construct
__construct(public readonly int $id, public readonly ?string $name, public readonly ?string $image, public readonly ?string $workPosition,)
Определения
BaseUserDto.php:9
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Type\Contract\Arrayable
Определения
arrayable.php:6
$name
$name
Определения
menu_edit.php:35
bitrix
modules
vote
lib
Model
Dto
BaseUserDto.php
Создано системой
1.14.0