1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
assetcollector.php
См. документацию.
1<?php
2namespace Bitrix\Main\UserField;
3
4use Bitrix\Main\Page\Asset;
5
10
12{
13 protected $assetCollectionStarted = false;
14
15 public function startAssetCollection()
16 {
17 if(!$this->assetCollectionStarted)
18 {
19 $this->resetAssets();
20 $this->assetCollectionStarted = true;
21 }
22 }
23
24 public function getCollectedAssets()
25 {
26 $result = array_merge(
27 $this->parseResourceString(Asset::getInstance()->getJs()),
28 $this->parseResourceString(Asset::getInstance()->getCss())
29 );
30
31 return array_unique($result);
32 }
33
34 protected function resetAssets()
35 {
36 global $APPLICATION;
37
38 $APPLICATION->ShowAjaxHead(true, false, false, false);
39 }
40
41 protected function parseResourceString($string)
42 {
43 $result = array();
44 $string = preg_split("/\\r\\n|\\r|\\n/", $string);
45 foreach($string as $v)
46 {
47 $v = trim((string)$v);
48 if($v !== '')
49 {
50 $result[] = $v;
51 }
52 }
53
54 return array_unique($result);
55 }
56}
global $APPLICATION
Определения include.php:80
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14