PHP 클래스 Arcanedev\SeoHelper\Bases\MetaCollection

저자: ARCANEDEV ([email protected])
상속: extends Arcanedev\Support\Collection, implements Arcanedev\SeoHelper\Contracts\Entities\MetaCollectionInterface
파일 보기 프로젝트 열기: arcanedev/seo-helper 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$ignored array Ignored tags, they have dedicated class.
$items array The items contained in the collection.
$nameProperty string Meta tag name property.
$prefix string Meta tag prefix.

공개 메소드들

메소드 설명
__toString ( ) : string Render the tag.
add ( string $name, string $content ) : MetaCollection Add a meta to collection.
addMany ( array $metas ) : MetaCollection Add many meta tags.
forget ( string | array $keys ) : MetaCollection Remove an item from the collection by key.
remove ( array | string $names ) : MetaCollection Remove a meta from the collection by key.
render ( ) : string Render the tag.
setPrefix ( string $prefix ) : MetaCollection Set meta prefix name.

보호된 메소드들

메소드 설명
addMeta ( string $name, string $content ) : MetaCollection Make a meta and add it to collection.
isIgnored ( string $name ) : boolean Check if meta is ignored.
prepareName ( array | string $names ) : array Prepare names.

비공개 메소드들

메소드 설명
refresh ( ) : MetaCollection Refresh meta collection items.

메소드 상세

__toString() 공개 메소드

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

add() 공개 메소드

Add a meta to collection.
public add ( string $name, string $content ) : MetaCollection
$name string
$content string
리턴 MetaCollection

addMany() 공개 메소드

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

addMeta() 보호된 메소드

Make a meta and add it to collection.
protected addMeta ( string $name, string $content ) : MetaCollection
$name string
$content string
리턴 MetaCollection

forget() 공개 메소드

Remove an item from the collection by key.
public forget ( string | array $keys ) : MetaCollection
$keys string | array
리턴 MetaCollection

isIgnored() 보호된 메소드

Check if meta is ignored.
protected isIgnored ( string $name ) : boolean
$name string
리턴 boolean

prepareName() 보호된 메소드

Prepare names.
protected prepareName ( array | string $names ) : array
$names array | string
리턴 array

remove() 공개 메소드

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

render() 공개 메소드

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

setPrefix() 공개 메소드

Set meta prefix name.
public setPrefix ( string $prefix ) : MetaCollection
$prefix string
리턴 MetaCollection

프로퍼티 상세

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

Ignored tags, they have dedicated class.
protected array $ignored
리턴 array

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

The items contained in the collection.
protected array $items
리턴 array

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

Meta tag name property.
protected string $nameProperty
리턴 string

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

Meta tag prefix.
protected string $prefix
리턴 string