PHP 클래스 Arcanedev\SeoHelper\Entities\MiscTags

저자: ARCANEDEV ([email protected])
상속: implements Arcanedev\SeoHelper\Contracts\Entities\MiscTagsInterface, use trait Arcanedev\Support\Traits\Configurable
파일 보기 프로젝트 열기: arcanedev/seo-helper

보호된 프로퍼티들

프로퍼티 타입 설명
$currentUrl string Current URL.
$metas Arcanedev\SeoHelper\Contracts\Entities\MetaCollection Meta collection.

공개 메소드들

메소드 설명
__construct ( array $configs = [] ) Make MiscTags instance.
__toString ( ) : string Render the tag.
add ( string $name, string $content ) : MiscTags Add a meta tag.
addMany ( array $metas ) : MiscTags Add many meta tags.
getUrl ( ) : string Get the current URL.
make ( array $defaults = [] ) : MiscTags Make MiscTags instance.
remove ( array | string $names ) : MiscTags Remove a meta from the meta collection by key.
render ( ) : string Render the tag.
reset ( ) : MiscTags Reset the meta collection.
setUrl ( string $url ) : MiscTags Set the current URL.

비공개 메소드들

메소드 설명
addCanonical ( ) : MiscTags Add the canonical link.
addRobotsMeta ( ) : MiscTags Add the robots meta.
hasUrl ( ) : boolean Check if has the current URL.
init ( ) Start the engine.
isCanonicalEnabled ( ) : boolean Check if canonical is enabled.
isRobotsEnabled ( ) : boolean Check if blocking robots is enabled.

메소드 상세

__construct() 공개 메소드

Make MiscTags instance.
public __construct ( array $configs = [] )
$configs array

__toString() 공개 메소드

Render the tag.
public __toString ( ) : string
리턴 string

add() 공개 메소드

Add a meta tag.
public add ( string $name, string $content ) : MiscTags
$name string
$content string
리턴 MiscTags

addMany() 공개 메소드

Add many meta tags.
public addMany ( array $metas ) : MiscTags
$metas array
리턴 MiscTags

getUrl() 공개 메소드

Get the current URL.
public getUrl ( ) : string
리턴 string

make() 공개 정적인 메소드

Make MiscTags instance.
public static make ( array $defaults = [] ) : MiscTags
$defaults array
리턴 MiscTags

remove() 공개 메소드

Remove a meta from the meta collection by key.
public remove ( array | string $names ) : MiscTags
$names array | string
리턴 MiscTags

render() 공개 메소드

Render the tag.
public render ( ) : string
리턴 string

reset() 공개 메소드

Reset the meta collection.
public reset ( ) : MiscTags
리턴 MiscTags

setUrl() 공개 메소드

Set the current URL.
public setUrl ( string $url ) : MiscTags
$url string
리턴 MiscTags

프로퍼티 상세

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

Current URL.
protected string $currentUrl
리턴 string

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

Meta collection.
protected MetaCollection,Arcanedev\SeoHelper\Contracts\Entities $metas
리턴 Arcanedev\SeoHelper\Contracts\Entities\MetaCollection