MetaFox

Tiktok extends AbstractLinkProvider
in package

Tags
SuppressWarnings

(PHPMD)

Table of Contents

Constants

EMBED_RESOURCE_URL  = 'https://www.tiktok.com/embed'
OEMBED_TARGET_URL  = 'https://www.tiktok.com/oembed'
URL_PATTERN  = '/(?:https?:\\/\\/www\\.)?tiktok\\.com\\/(?:\\S+)/'

Methods

__construct()  : mixed
parseUrl()  : array<string|int, mixed>|null
setOptions()  : void
verifyUrl()  : bool

Constants

EMBED_RESOURCE_URL

public mixed EMBED_RESOURCE_URL = 'https://www.tiktok.com/embed'

OEMBED_TARGET_URL

public mixed OEMBED_TARGET_URL = 'https://www.tiktok.com/oembed'

URL_PATTERN

public mixed URL_PATTERN = '/(?:https?:\\/\\/www\\.)?tiktok\\.com\\/(?:\\S+)/'

Methods

__construct()

public __construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

parseUrl()

public parseUrl(string $url) : array<string|int, mixed>|null
Parameters
$url : string
Return values
array<string|int, mixed>|null

setOptions()

public setOptions(array<string|int, mixed> $options) : void
Parameters
$options : array<string|int, mixed>

verifyUrl()

public verifyUrl(string $url[, mixed &$matches = [] ]) : bool
Parameters
$url : string
$matches : mixed = []
Return values
bool

        
On this page

Search results