PHP 인터페이스 Artesaos\SEOTools\Contracts\MetaTags

파일 보기 프로젝트 열기: artesaos/seotools

공개 메소드들

메소드 설명
__construct ( array $config = [] ) Configuration.
addAlternateLanguage ( string $lang, string $url ) Add an alternate language.
addAlternateLanguages ( array $languages ) : Artesaos\SEOTools\Contracts\MetaTags Add alternate languages.
addKeyword ( string | array $keyword ) : Artesaos\SEOTools\Contracts\MetaTags Add a keyword.
addMeta ( string | array $meta, string $value = null, string $name = 'name' ) : Artesaos\SEOTools\Contracts\MetaTags Add a custom meta tag.
generate ( boolean $minify = false ) : string Generates meta tags.
getAlternateLanguages ( ) : array Get alternate languages.
getCanonical ( ) : string Get the canonical URL.
getDefaultTitle ( ) : string Takes the default title.
getDescription ( ) : string Get the Meta description.
getKeywords ( ) : array Get the Meta keywords.
getMetatags ( ) : array Get all metatags.
getNext ( ) : string Get the next URL.
getPrev ( ) : string Get the prev URL.
getTitle ( ) : string Get the title formatted for display.
getTitleSeparator ( ) : string Get the title separator that was set.
getTitleSession ( ) : string Get the title that was set.
removeMeta ( string $key ) : Artesaos\SEOTools\Contracts\MetaTags Remove a metatag.
reset ( ) : void Reset all data.
setCanonical ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags Sets the canonical URL.
setDescription ( string $description ) : Artesaos\SEOTools\Contracts\MetaTags Set the description.
setKeywords ( array $keywords ) : Artesaos\SEOTools\Contracts\MetaTags Sets the list of keywords, you can send an array or string separated with commas also clears the previously set keywords.
setNext ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags Sets the next URL.
setPrev ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags Sets the prev URL.
setTitle ( string $title, boolean $appendDefault = true ) : Artesaos\SEOTools\Contracts\MetaTags Set the title.
setTitleDefault ( string $default ) : Artesaos\SEOTools\Contracts\MetaTags Sets the default title tag.
setTitleSeparator ( string $separator ) : Artesaos\SEOTools\Contracts\MetaTags Set the title separator.

메소드 상세

__construct() 공개 메소드

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

addAlternateLanguage() 공개 메소드

Add an alternate language.
public addAlternateLanguage ( string $lang, string $url )
$lang string language code in format ISO 639-1
$url string

addAlternateLanguages() 공개 메소드

Add alternate languages.
public addAlternateLanguages ( array $languages ) : Artesaos\SEOTools\Contracts\MetaTags
$languages array
리턴 Artesaos\SEOTools\Contracts\MetaTags

addKeyword() 공개 메소드

Add a keyword.
public addKeyword ( string | array $keyword ) : Artesaos\SEOTools\Contracts\MetaTags
$keyword string | array
리턴 Artesaos\SEOTools\Contracts\MetaTags

addMeta() 공개 메소드

Add a custom meta tag.
public addMeta ( string | array $meta, string $value = null, string $name = 'name' ) : Artesaos\SEOTools\Contracts\MetaTags
$meta string | array
$value string
$name string
리턴 Artesaos\SEOTools\Contracts\MetaTags

generate() 공개 메소드

Generates meta tags.
public generate ( boolean $minify = false ) : string
$minify boolean
리턴 string

getAlternateLanguages() 공개 메소드

Get alternate languages.
public getAlternateLanguages ( ) : array
리턴 array

getCanonical() 공개 메소드

Get the canonical URL.
public getCanonical ( ) : string
리턴 string

getDefaultTitle() 공개 메소드

Takes the default title.
public getDefaultTitle ( ) : string
리턴 string

getDescription() 공개 메소드

Get the Meta description.
public getDescription ( ) : string
리턴 string

getKeywords() 공개 메소드

Get the Meta keywords.
public getKeywords ( ) : array
리턴 array

getMetatags() 공개 메소드

Get all metatags.
public getMetatags ( ) : array
리턴 array

getNext() 공개 메소드

Get the next URL.
public getNext ( ) : string
리턴 string

getPrev() 공개 메소드

Get the prev URL.
public getPrev ( ) : string
리턴 string

getTitle() 공개 메소드

Get the title formatted for display.
public getTitle ( ) : string
리턴 string

getTitleSeparator() 공개 메소드

Get the title separator that was set.
public getTitleSeparator ( ) : string
리턴 string

getTitleSession() 공개 메소드

Get the title that was set.
public getTitleSession ( ) : string
리턴 string

removeMeta() 공개 메소드

Remove a metatag.
public removeMeta ( string $key ) : Artesaos\SEOTools\Contracts\MetaTags
$key string
리턴 Artesaos\SEOTools\Contracts\MetaTags

reset() 공개 메소드

Reset all data.
public reset ( ) : void
리턴 void

setCanonical() 공개 메소드

Sets the canonical URL.
public setCanonical ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags
$url string
리턴 Artesaos\SEOTools\Contracts\MetaTags

setDescription() 공개 메소드

Set the description.
public setDescription ( string $description ) : Artesaos\SEOTools\Contracts\MetaTags
$description string
리턴 Artesaos\SEOTools\Contracts\MetaTags

setKeywords() 공개 메소드

Sets the list of keywords, you can send an array or string separated with commas also clears the previously set keywords.
public setKeywords ( array $keywords ) : Artesaos\SEOTools\Contracts\MetaTags
$keywords array
리턴 Artesaos\SEOTools\Contracts\MetaTags

setNext() 공개 메소드

Sets the next URL.
public setNext ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags
$url string
리턴 Artesaos\SEOTools\Contracts\MetaTags

setPrev() 공개 메소드

Sets the prev URL.
public setPrev ( string $url ) : Artesaos\SEOTools\Contracts\MetaTags
$url string
리턴 Artesaos\SEOTools\Contracts\MetaTags

setTitle() 공개 메소드

Set the title.
public setTitle ( string $title, boolean $appendDefault = true ) : Artesaos\SEOTools\Contracts\MetaTags
$title string
$appendDefault boolean
리턴 Artesaos\SEOTools\Contracts\MetaTags

setTitleDefault() 공개 메소드

Sets the default title tag.
public setTitleDefault ( string $default ) : Artesaos\SEOTools\Contracts\MetaTags
$default string
리턴 Artesaos\SEOTools\Contracts\MetaTags

setTitleSeparator() 공개 메소드

Set the title separator.
public setTitleSeparator ( string $separator ) : Artesaos\SEOTools\Contracts\MetaTags
$separator string
리턴 Artesaos\SEOTools\Contracts\MetaTags