1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
avatar.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Helper;
4
5
use Bitrix\Main\Type\Contract\Arrayable;
6
7
final
class
Avatar
implements
Arrayable
8
{
9
public
function
__construct
(
private
string
$type
,
private
string
$id =
''
)
10
{}
11
12
public
function
getType
(): string
13
{
14
return
$this->type
;
15
}
16
17
public
function
setType
(
string
$type
): self
18
{
19
$this->type =
$type
;
20
21
return
$this;
22
}
23
24
public
function
getId
(): string
25
{
26
return
$this->id;
27
}
28
29
public
function
setId
(
string
$id): self
30
{
31
$this->
id
= $id;
32
33
return
$this;
34
}
35
36
public
function
toArray
():
array
37
{
38
return
[
39
'type'
=>
$this->type
,
40
'id'
=> $this->id,
41
];
42
}
43
}
$type
$type
Определения
options.php:106
Bitrix\Socialnetwork\Helper\Avatar
Определения
avatar.php:8
Bitrix\Socialnetwork\Helper\Avatar\__construct
__construct(private string $type, private string $id='')
Определения
avatar.php:9
Bitrix\Socialnetwork\Helper\Avatar\getId
getId()
Определения
avatar.php:24
Bitrix\Socialnetwork\Helper\Avatar\toArray
toArray()
Определения
avatar.php:36
Bitrix\Socialnetwork\Helper\Avatar\getType
getType()
Определения
avatar.php:12
Bitrix\Socialnetwork\Helper\Avatar\setType
setType(string $type)
Определения
avatar.php:17
Bitrix\Socialnetwork\Helper\Avatar\setId
setId(string $id)
Определения
avatar.php:29
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
bitrix
modules
socialnetwork
lib
helper
avatar.php
Создано системой
1.14.0