3namespace Bitrix\Im\V2\Entity\Url;
5use Bitrix\Im\V2\Entity\EntityCollection;
6use Bitrix\Main\UrlPreview\UrlPreview;
19 parent::__construct();
23 foreach ($urls as
$url)
41 $urlCollection =
new static();
43 if (empty($previewUrlsIds))
45 return $urlCollection;
50 $previews = UrlPreview::getMetadataAndHtmlByIds($previewUrlsIds);
54 $previews = UrlPreview::getMetadataByIds($previewUrlsIds);
57 if ($previews ===
false)
59 return $urlCollection;
62 foreach ($previews as $preview)
67 return $urlCollection;
74 return new static($urls);
static initByPreviewUrlsIds(array $previewUrlsIds, bool $withHtml=true)
static getRestEntityName()
static initByMessage(\Bitrix\Im\V2\Message $message)
__construct(?array $urls=null)
static initByMetadata(array $metadata)
static getUrlsFromText(?string $text)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)