PHP Класс Calotype\SEO\Generators\SitemapGenerator

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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