Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
asset.php
1
<?php
2
3
namespace
Bitrix\Sender\Integration\Yandex\Toloka\DTO
;
4
5
class
Asset
implements
TolokaTransferObject
6
{
10
private
$scriptUrls = [];
11
17
public
function
__construct
()
18
{
19
$this->scriptUrls[] =
'$TOLOKA_ASSETS/js/toloka-handlebars-templates.js'
;
20
}
21
25
public
function
getScriptUrls
(): array
26
{
27
return
$this->scriptUrls;
28
}
29
30
36
public
function
setScriptUrls
(array $scriptUrls):
Asset
37
{
38
$this->scriptUrls = $scriptUrls;
39
40
return
$this;
41
}
42
43
49
public
function
addScriptUrl
(
string
$scriptUrl):
Asset
50
{
51
$this->scriptUrls[] = $scriptUrl;
52
53
return
$this;
54
}
55
56
57
public
function
toArray
():array
58
{
59
return
[
60
'script_urls'
=> $this->scriptUrls,
61
];
62
}
63
}
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset
Definition
asset.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\__construct
__construct()
Definition
asset.php:17
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\toArray
toArray()
Definition
asset.php:57
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\addScriptUrl
addScriptUrl(string $scriptUrl)
Definition
asset.php:49
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\getScriptUrls
getScriptUrls()
Definition
asset.php:25
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\setScriptUrls
setScriptUrls(array $scriptUrls)
Definition
asset.php:36
Bitrix\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Definition
tolokatransferobject.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO
modules
sender
lib
integration
yandex
toloka
dto
asset.php
Создано системой
1.10.0