PHP Интерфейс Artesaos\SEOTools\Contracts\OpenGraph

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( array $config = [] )
addAudio ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph add audio properties.
addImage ( string $url, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Add image to properties.
addImages ( array $urls ) : Artesaos\SEOTools\Contracts\OpenGraph Add images to properties.
addProperty ( string $key, string | array $value ) : Artesaos\SEOTools\Contracts\OpenGraph Add or update property.
addVideo ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph add Video properties.
generate ( boolean $minify = false ) : string Generates open graph tags.
removeProperty ( string $key ) : Artesaos\SEOTools\Contracts\OpenGraph Remove property.
setArticle ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Article properties.
setBook ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Book properties.
setDescription ( string $description ) : Artesaos\SEOTools\Contracts\OpenGraph Define description property.
setMusicAlbum ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Music Album properties.
setMusicPlaylist ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Music Playlist properties.
setMusicRadioStation ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Music RadioStation properties.
setMusicSong ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Music Song properties.
setProfile ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Profile properties.
setSiteName ( string $name ) : Artesaos\SEOTools\Contracts\OpenGraph Define site_name property.
setTitle ( $title ) : Artesaos\SEOTools\Contracts\OpenGraph Define title property.
setType ( $type = null ) : Artesaos\SEOTools\Contracts\OpenGraph Define type property.
setUrl ( string $url ) : Artesaos\SEOTools\Contracts\OpenGraph Define url property.
setVideoEpisode ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Video Episode properties.
setVideoMovie ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Video Movie properties.
setVideoOther ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Video Episode properties.
setVideoTVShow ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph Set Video Episode properties.

Описание методов

__construct() публичный Метод

public __construct ( array $config = [] )
$config array

addAudio() публичный Метод

add audio properties.
public addAudio ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$source string
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

addImage() публичный Метод

Add image to properties.
public addImage ( string $url, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$url string
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

addImages() публичный Метод

Add images to properties.
public addImages ( array $urls ) : Artesaos\SEOTools\Contracts\OpenGraph
$urls array
Результат Artesaos\SEOTools\Contracts\OpenGraph

addProperty() публичный Метод

Add or update property.
public addProperty ( string $key, string | array $value ) : Artesaos\SEOTools\Contracts\OpenGraph
$key string
$value string | array
Результат Artesaos\SEOTools\Contracts\OpenGraph

addVideo() публичный Метод

add Video properties.
public addVideo ( string $source = null, array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$source string
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

generate() публичный Метод

Generates open graph tags.
public generate ( boolean $minify = false ) : string
$minify boolean
Результат string

removeProperty() публичный Метод

Remove property.
public removeProperty ( string $key ) : Artesaos\SEOTools\Contracts\OpenGraph
$key string
Результат Artesaos\SEOTools\Contracts\OpenGraph

setArticle() публичный Метод

Set Article properties.
public setArticle ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setBook() публичный Метод

Set Book properties.
public setBook ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setDescription() публичный Метод

Define description property.
public setDescription ( string $description ) : Artesaos\SEOTools\Contracts\OpenGraph
$description string
Результат Artesaos\SEOTools\Contracts\OpenGraph

setMusicAlbum() публичный Метод

Set Music Album properties.
public setMusicAlbum ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setMusicPlaylist() публичный Метод

Set Music Playlist properties.
public setMusicPlaylist ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setMusicRadioStation() публичный Метод

Set Music RadioStation properties.
public setMusicRadioStation ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setMusicSong() публичный Метод

Set Music Song properties.
public setMusicSong ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setProfile() публичный Метод

Set Profile properties.
public setProfile ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setSiteName() публичный Метод

Define site_name property.
public setSiteName ( string $name ) : Artesaos\SEOTools\Contracts\OpenGraph
$name string
Результат Artesaos\SEOTools\Contracts\OpenGraph

setTitle() публичный Метод

Define title property.
public setTitle ( $title ) : Artesaos\SEOTools\Contracts\OpenGraph
$title
Результат Artesaos\SEOTools\Contracts\OpenGraph

setType() публичный Метод

Define type property.
public setType ( $type = null ) : Artesaos\SEOTools\Contracts\OpenGraph
Результат Artesaos\SEOTools\Contracts\OpenGraph

setUrl() публичный Метод

Define url property.
public setUrl ( string $url ) : Artesaos\SEOTools\Contracts\OpenGraph
$url string
Результат Artesaos\SEOTools\Contracts\OpenGraph

setVideoEpisode() публичный Метод

Set Video Episode properties.
public setVideoEpisode ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setVideoMovie() публичный Метод

Set Video Movie properties.
public setVideoMovie ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setVideoOther() публичный Метод

Set Video Episode properties.
public setVideoOther ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph

setVideoTVShow() публичный Метод

Set Video Episode properties.
public setVideoTVShow ( array $attributes = [] ) : Artesaos\SEOTools\Contracts\OpenGraph
$attributes array
Результат Artesaos\SEOTools\Contracts\OpenGraph