PHP 클래스 Artesaos\SEOTools\SEOMeta

상속: implements Artesaos\SEOTools\Contracts\MetaTags
파일 보기 프로젝트 열기: artesaos/seotools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$alternateLanguages array The alternate languages.
$canonical string The canonical URL.
$config Illuminate\Config\Repository
$description string The meta description.
$keywords array The meta keywords.
$metatags array extra metatags.
$next string The next URL in pagination.
$prev string The prev URL in pagination.
$title string The meta title.
$title_default string The meta title session.
$title_separator array The title tag separator.
$title_session string The meta title session.
$webmasterTags array The webmaster tags.

공개 메소드들

메소드 설명
__construct ( array $config = [] )
addAlternateLanguage ( string $lang, string $url ) : Artesaos\SEOTools\Contracts\MetaTags 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 | null 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 Takes the title formatted for display.
getTitleSeparator ( ) : string takes the title that was set.
getTitleSession ( ) : string takes 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
setKeywords ( string | 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 Sets the title.
setTitleDefault ( string $default ) : Artesaos\SEOTools\Contracts\MetaTags Sets the default title tag.
setTitleSeparator ( string $separator ) : Artesaos\SEOTools\Contracts\MetaTags Sets the separator for the title tag.

보호된 메소드들

메소드 설명
loadWebMasterTags ( ) Load webmaster tags from configuration.
parseTitle ( string $title ) : string Get parsed title.

메소드 상세

__construct() 공개 메소드

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

addAlternateLanguage() 공개 메소드

Add an alternate language.
public addAlternateLanguage ( string $lang, string $url ) : Artesaos\SEOTools\Contracts\MetaTags
$lang string language code in ISO 639-1 format
$url string
리턴 Artesaos\SEOTools\Contracts\MetaTags

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 | null
리턴 string | null

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() 공개 메소드

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

getTitleSeparator() 공개 메소드

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

getTitleSession() 공개 메소드

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

loadWebMasterTags() 보호된 메소드

Load webmaster tags from configuration.
protected loadWebMasterTags ( )

parseTitle() 보호된 메소드

Get parsed title.
protected parseTitle ( string $title ) : string
$title 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() 공개 메소드

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 ( string | array $keywords ) : Artesaos\SEOTools\Contracts\MetaTags
$keywords string | 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() 공개 메소드

Sets 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() 공개 메소드

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

프로퍼티 상세

$alternateLanguages 보호되어 있는 프로퍼티

The alternate languages.
protected array $alternateLanguages
리턴 array

$canonical 보호되어 있는 프로퍼티

The canonical URL.
protected string $canonical
리턴 string

$config 보호되어 있는 프로퍼티

protected Repository,Illuminate\Config $config
리턴 Illuminate\Config\Repository

$description 보호되어 있는 프로퍼티

The meta description.
protected string $description
리턴 string

$keywords 보호되어 있는 프로퍼티

The meta keywords.
protected array $keywords
리턴 array

$metatags 보호되어 있는 프로퍼티

extra metatags.
protected array $metatags
리턴 array

$next 보호되어 있는 프로퍼티

The next URL in pagination.
protected string $next
리턴 string

$prev 보호되어 있는 프로퍼티

The prev URL in pagination.
protected string $prev
리턴 string

$title 보호되어 있는 프로퍼티

The meta title.
protected string $title
리턴 string

$title_default 보호되어 있는 프로퍼티

The meta title session.
protected string $title_default
리턴 string

$title_separator 보호되어 있는 프로퍼티

The title tag separator.
protected array $title_separator
리턴 array

$title_session 보호되어 있는 프로퍼티

The meta title session.
protected string $title_session
리턴 string

$webmasterTags 보호되어 있는 프로퍼티

The webmaster tags.
protected array $webmasterTags
리턴 array