Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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. |
protected loadClosures ( ) : void | ||
return | void |
public prepareData ( array $data ) : array | ||
$data | array | |
return | array |
protected replaceAttribute ( string $attribute ) : string | ||
$attribute | string | |
return | string |
protected replaceAttributes ( array $data ) : array | ||
$data | array | |
return | array |
protected validateData ( array $data ) | ||
$data | array |
protected validateObject ( mixed $element ) | ||
$element | mixed |
protected array $frequencies | ||
return | array |
protected array $replacements | ||
return | array |
protected array $required | ||
return | array |