Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
withurl.php
1<?php
2
4
5use CUtil;
6
7trait WithUrl
8{
9 protected string $url;
10
11 public function setUrl(string $url): void
12 {
13 $this->url = $url;
14 }
15
16 protected function getUrlForOnclick(): string
17 {
18 return CUtil::JSEscape($this->url);
19 }
20}