Documentation

OembedAdapterGoogle extends OembedAdapter
in package

Table of Contents

Properties

$contents  : mixed
$oembed  : mixed
$parser  : mixed
$url  : mixed

Methods

__construct()  : mixed
beforeScrape()  : mixed
Triggered before the scraper scrapes any contents.
fixOembedUrl()  : mixed
Fix the http url in https site
getEmbedContent()  : mixed
Get the embed from the content
getOembedData()  : mixed
Retrieves the oembed data of a page
getOembedUrl()  : mixed
Determines if the current link supports oembed tags
getOpengraphData()  : mixed
Generates the opengraph data given the link to the video
isHandler()  : mixed
Determines if the adapter is currently the handler for the given url
isValid()  : mixed
Tests to see if the url is a valid url for this adapter
process()  : mixed
scrape()  : mixed
By default, we let the scraper run its own course. If there are any oembed adapter that needs to run its own, they can override this method and implement on their own
setContents()  : mixed
Allows caller to set the contents in the adapter
setParser()  : mixed
Allows caller to set the parser in the adapter
isWordpress()  : mixed
Determines if the target site is a wordpress site

Properties

$contents

public mixed $contents = ''

$oembed

public mixed $oembed = \false

$parser

public mixed $parser = \null

Methods

__construct()

public __construct(mixed $url) : mixed
Parameters
$url : mixed

beforeScrape()

Triggered before the scraper scrapes any contents.

public beforeScrape() : mixed
Tags
since
1.0.0
access

public

fixOembedUrl()

Fix the http url in https site

public fixOembedUrl(mixed $oembed) : mixed
Parameters
$oembed : mixed
Tags
since
1.0.0
access

public

getEmbedContent()

Get the embed from the content

public getEmbedContent() : mixed
Tags
since
3.2
access

public

getOembedData()

Retrieves the oembed data of a page

public getOembedData() : mixed
Tags
since
1.0.0
access

public

getOembedUrl()

Determines if the current link supports oembed tags

public getOembedUrl() : mixed
Tags
since
1.0.0
access

public

getOpengraphData()

Generates the opengraph data given the link to the video

public getOpengraphData(mixed $contents) : mixed
Parameters
$contents : mixed
Tags
since
2.1.0
access

public

isHandler()

Determines if the adapter is currently the handler for the given url

public isHandler(mixed $url) : mixed
Parameters
$url : mixed
Tags
since
1.0.0
access

public

isValid()

Tests to see if the url is a valid url for this adapter

public isValid(mixed $url) : mixed
Parameters
$url : mixed
Tags
since
1.0.0
access

public

process()

public process(mixed &$result) : mixed
Parameters
$result : mixed

scrape()

By default, we let the scraper run its own course. If there are any oembed adapter that needs to run its own, they can override this method and implement on their own

public scrape() : mixed
Tags
since
1.0.0
access

public

setContents()

Allows caller to set the contents in the adapter

public setContents(mixed $contents) : mixed
Parameters
$contents : mixed
Tags
since
1.0.0
access

public

setParser()

Allows caller to set the parser in the adapter

public setParser(mixed $parser) : mixed
Parameters
$parser : mixed
Tags
since
1.0.0
access

public

isWordpress()

Determines if the target site is a wordpress site

private isWordpress(mixed $url) : mixed
Parameters
$url : mixed
Tags
since
1.0.0
access

public


        
On this page

Search results