PHP 클래스 Calotype\SEO\Generators\SitemapGenerator

파일 보기 프로젝트 열기: calotype/seo

보호된 프로퍼티들

프로퍼티 타입 설명
$closures array Closures used for lazy loading.
$entries array All the entries of the sitemap.
$frequencies array The allowed values for the change frequency.
$replacements array The attributes that should be replaced with their valid counterpart for readability.
$required array The required fields of a sitemap entry.

공개 메소드들

메소드 설명
add ( mixed $object ) Add a SitemapAware object to the sitemap.
addAll ( array | Traversabl\Traversable $objects ) Add multiple SitemapAware objects to the sitemap.
addRaw ( array $data ) Add a raw entry to the sitemap.
contains ( string $url ) : boolean Check if the sitemap contains an url.
generate ( ) : string Generate the xml for the sitemap.
prepareData ( array $data ) : array Prepare the data.
reset ( ) : void Clean all entries from the sitemap.

보호된 메소드들

메소드 설명
loadClosures ( ) : void Load the lazy loaded elements.
replaceAttribute ( string $attribute ) : string Replace an attribute with it's replacement if available.
replaceAttributes ( array $data ) : array Replace the attribute names with their replacements.
validateData ( array $data ) Validate the data for a sitemap entry.
validateObject ( mixed $element ) Validate an element.

메소드 상세

add() 공개 메소드

Add a SitemapAware object to the sitemap.
public add ( mixed $object )
$object mixed

addAll() 공개 메소드

Add multiple SitemapAware objects to the sitemap.
public addAll ( array | Traversabl\Traversable $objects )
$objects array | Traversabl\Traversable

addRaw() 공개 메소드

Add a raw entry to the sitemap.
public addRaw ( array $data )
$data array

contains() 공개 메소드

Check if the sitemap contains an url.
public contains ( string $url ) : boolean
$url string
리턴 boolean

generate() 공개 메소드

Generate the xml for the sitemap.
public generate ( ) : string
리턴 string

loadClosures() 보호된 메소드

Load the lazy loaded elements.
protected loadClosures ( ) : void
리턴 void

prepareData() 공개 메소드

Prepare the data.
public prepareData ( array $data ) : array
$data array
리턴 array

replaceAttribute() 보호된 메소드

Replace an attribute with it's replacement if available.
protected replaceAttribute ( string $attribute ) : string
$attribute string
리턴 string

replaceAttributes() 보호된 메소드

Replace the attribute names with their replacements.
protected replaceAttributes ( array $data ) : array
$data array
리턴 array

reset() 공개 메소드

Clean all entries from the sitemap.
public reset ( ) : void
리턴 void

validateData() 보호된 메소드

Validate the data for a sitemap entry.
protected validateData ( array $data )
$data array

validateObject() 보호된 메소드

Validate an element.
protected validateObject ( mixed $element )
$element mixed

프로퍼티 상세

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

Closures used for lazy loading.
protected array $closures
리턴 array

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

All the entries of the sitemap.
protected array $entries
리턴 array

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

The allowed values for the change frequency.
protected array $frequencies
리턴 array

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

The attributes that should be replaced with their valid counterpart for readability.
protected array $replacements
리턴 array

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

The required fields of a sitemap entry.
protected array $required
리턴 array