1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
asset.php:6
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\__construct
__construct()
Определения
asset.php:17
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\toArray
toArray()
Определения
asset.php:57
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\addScriptUrl
addScriptUrl(string $scriptUrl)
Определения
asset.php:49
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\getScriptUrls
getScriptUrls()
Определения
asset.php:25
Bitrix\Sender\Integration\Yandex\Toloka\DTO\Asset\setScriptUrls
setScriptUrls(array $scriptUrls)
Определения
asset.php:36
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\Sender\Integration\Yandex\Toloka\DTO\TolokaTransferObject
Определения
tolokatransferobject.php:6
bitrix
modules
sender
lib
integration
yandex
toloka
dto
asset.php
Создано системой
1.14.0