SitemapXml final class
Minn\Front\SitemapXml · public/minn/src/Minn/Front/SitemapXml.php · 55 lines
The two sitemap documents, index and URL set, from entry maps; one builder for the engine's routes and the facade's renderer. An element with nothing inside closes itself, at every level, as the reference's XML writer prints it (probe sitemap-classes).
Uses 1
Public
| static | index(array $entries, string $stylesheet): string# | A sitemap index document.
| |||
| static | urlset(array $entries, string $stylesheet): string# | A sitemap urlset document.
| |||
| static | stylesheet(string $url): string# | The processing instruction naming a stylesheet, as the renderer keeps it; nothing for no address. |
Internals 3
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | elements(string $tag, array $entries): string# | |
| private | element(string $tag, string $inner, string $attributes = ''): string# | One element: closed on itself when empty. |
| private | document(string $stylesheet, string $body): string# | The document: the XML declaration, the stylesheet instruction when there is one, the body. |
Nothing matches.