EasyBlogCrawlerOpengraph
in package
Table of Contents
Properties
Methods
- get() : mixed
- Returns the charset of the document.
- getVideoProvider() : mixed
- process() : mixed
- Ruleset to process document opengraph tags
Properties
$patterns
public
mixed
$patterns
= [
// Example: <meta property="og:image" content="https://stackideas.com/images/easyblog_images/1257/b2ap3_thumbnail_easyblog-37-supports-joomla-3.jpg"/>
'image' => 'og:image',
// Example: <meta property="og:title" content="EasyBlog 3.7 is now Joomla 3.0 ready" />
'title' => 'og:title',
// Example: <meta property="og:description" content="EasyBlog 3.7 now works in Joomla 3.0 and comes with some new features." />
'desc' => 'og:description',
// Example: <meta property="og:type" content="article" />
'type' => 'og:type',
// Example: <meta property="og:type" content="article" />
'url' => 'og:url',
// Example: <meta property="og:video" content="http://www.youtube.com/v/T39GhB5uBGQ?version=3&autohide=1">
'video' => 'og:video',
// Example: <meta property="og:video:type" content="application/x-shockwave-flash">
'video_type' => 'og:video:type',
// Example: <meta property="og:video:width" content="640">
'video_width' => 'og:video:width',
// Example: <meta property="og:video:height" content="640">
'video_height' => 'og:video:height',
]
$videos
private
mixed
$videos
= ['youtube.com' => 'youtube', 'youtu.be' => 'youtube', 'vimeo.com' => 'vimeo', 'yahoo.com' => 'yahoo', 'metacafe.com' => 'metacafe', 'google.com' => 'google', 'liveleak.com' => 'liveleak', 'revver.com' => 'revver', 'dailymotion.com' => 'dailymotion']
Methods
get()
Returns the charset of the document.
public
get() : mixed
Tags
getVideoProvider()
public
getVideoProvider(mixed $video) : mixed
Parameters
- $video : mixed
process()
Ruleset to process document opengraph tags
public
process(mixed $parser, mixed &$contents, mixed $uri, mixed $absoluteUrl, mixed $originalUrl, mixed &$data) : mixed
Parameters
- $parser : mixed
- $contents : mixed
- $uri : mixed
- $absoluteUrl : mixed
- $originalUrl : mixed
- $data : mixed