method
public
static
UrlPreview::getMetadataAndHtmlByUrl()
Сигнатура
public static getMetadataAndHtmlByUrl(string $url[, bool $addIfNew = true ][, mixed $reuseExistingMetadata = true ]) : array<string|int, mixed>|false
Описание
Русский перевод этого описания пока проверяется. Показан оригинал.
If url is remote - returns metadata for this url. If url is local - checks current user access to the entity behind the url, and returns html preview for this entity.
Параметры
$url
string
URL документа.
$addIfNew
bool
= true
Should method fetch and store metadata for the document, if it is not found in database.
$reuseExistingMetadata
mixed
= true
Возвращаемое значение
array<string|int, mixed>|false
Исходный файл: source/main/lib/urlpreview/urlpreview.php:232

