Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс UrlItem
+ Граф наследования:UrlItem:

Открытые члены

 __construct (?string $url=null, bool $withFetchMetadata=true)
 
 getId ()
 
 toRestFormat (array $option=[])
 
 getUrl ()
 
 setUrl (string $url)
 
 getMetadata ()
 
 setMetadata (array $metadata)
 
 isStaticUrl ()
 
 isDynamicUrl ()
 
 getRichData ()
 
 setRichData (?RichData $richData)
 
 isRich ()
 
 getUrlAttach ()
 
 setUrlAttach (?CIMMessageParamAttach $urlAttach)
 

Открытые статические члены

static getRestEntityName ()
 
static initByMetadata (array $metadata)
 
static initByPreviewUrlId (int $previewUrlId, bool $withHtml=true)
 
static getUrlsFromText (?string $text)
 
static getFirstUrlFromText (?string $text)
 
static getByMessage (Message $message)
 

Защищенные статические члены

static getTextParser ()
 
static normalizeUrl (string $url)
 
static isUrlValid (string $url)
 

Защищенные данные

string $url = ''
 
array $metadata = []
 
RichData $richData
 
CIMMessageParamAttach $urlAttach = null
 

Статические защищенные данные

static array $staticMetadataCache = []
 

Подробное описание

См. определение в файле UrlItem.php строка 13

Конструктор(ы)

◆ __construct()

__construct ( ?string $url = null,
bool $withFetchMetadata = true )

См. определение в файле UrlItem.php строка 26

Методы

◆ getByMessage()

static getByMessage ( Message $message)
static

См. определение в файле UrlItem.php строка 126

◆ getFirstUrlFromText()

static getFirstUrlFromText ( ?string $text)
static

См. определение в файле UrlItem.php строка 121

◆ getId()

getId ( )

Returns the id of the entity

Возвращает
int|null

Замещает Entity.

См. определение в файле UrlItem.php строка 138

◆ getMetadata()

getMetadata ( )

См. определение в файле UrlItem.php строка 214

◆ getRestEntityName()

static getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

См. определение в файле UrlItem.php строка 21

◆ getRichData()

getRichData ( )

См. определение в файле UrlItem.php строка 239

◆ getTextParser()

static getTextParser ( )
staticprotected

См. определение в файле UrlItem.php строка 158

◆ getUrl()

getUrl ( )

См. определение в файле UrlItem.php строка 199

◆ getUrlAttach()

getUrlAttach ( )

См. определение в файле UrlItem.php строка 283

◆ getUrlsFromText()

static getUrlsFromText ( ?string $text)
static
Аргументы
string | null$text
Возвращает
string[]

См. определение в файле UrlItem.php строка 82

◆ initByMetadata()

static initByMetadata ( array $metadata)
static

См. определение в файле UrlItem.php строка 55

◆ initByPreviewUrlId()

static initByPreviewUrlId ( int $previewUrlId,
bool $withHtml = true )
static

См. определение в файле UrlItem.php строка 60

◆ isDynamicUrl()

isDynamicUrl ( )

См. определение в файле UrlItem.php строка 232

◆ isRich()

isRich ( )

См. определение в файле UrlItem.php строка 278

◆ isStaticUrl()

isStaticUrl ( )

См. определение в файле UrlItem.php строка 225

◆ isUrlValid()

static isUrlValid ( string $url)
staticprotected

См. определение в файле UrlItem.php строка 186

◆ normalizeUrl()

static normalizeUrl ( string $url)
staticprotected

См. определение в файле UrlItem.php строка 175

◆ setMetadata()

setMetadata ( array $metadata)

См. определение в файле UrlItem.php строка 219

◆ setRichData()

setRichData ( ?RichData $richData)

См. определение в файле UrlItem.php строка 272

◆ setUrl()

setUrl ( string $url)

См. определение в файле UrlItem.php строка 204

◆ setUrlAttach()

setUrlAttach ( ?CIMMessageParamAttach $urlAttach)

См. определение в файле UrlItem.php строка 296

◆ toRestFormat()

toRestFormat ( array $option = [])

Returns an array in JSON like format to return the entity as a rest response.

Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

См. определение в файле UrlItem.php строка 150

Данные класса

◆ $metadata

array $metadata = []
protected

См. определение в файле UrlItem.php строка 16

◆ $richData

RichData $richData
protected

См. определение в файле UrlItem.php строка 18

◆ $staticMetadataCache

array $staticMetadataCache = []
staticprotected

См. определение в файле UrlItem.php строка 17

◆ $url

string $url = ''
protected

См. определение в файле UrlItem.php строка 15

◆ $urlAttach

CIMMessageParamAttach $urlAttach = null
protected

См. определение в файле UrlItem.php строка 19