Wilr\GoogleSitemaps\Extensions\GoogleSitemapSiteTreeExtension
Synopsis
class GoogleSitemapSiteTreeExtension
extends GoogleSitemapExtension
{
- // members
- private static array $db = ;
- // methods
- public void updateSettingsFields()
- public void updateFieldLabels()
- public boolean hasPublishedParent()
- public boolean canIncludeInGoogleSitemap()
- public mixed getGooglePriority()
- public void ImagesForSitemap()
- // Inherited methods from GoogleSitemapExtension
- public boolean canIncludeInGoogleSitemap()
- public void onAfterPublish()
- public void onAfterUnpublish()
- public mixed getGooglePriority()
- public DBDatetime getChangeFrequency()
Hierarchy
Members
private
- $db
Methods
public
- ImagesForSitemap()
- canIncludeInGoogleSitemap()
- getGooglePriority()
- hasPublishedParent() — Ensure that all parent pages of this page (if any) are published
- updateFieldLabels()
- updateSettingsFields()
Inherited from Wilr\GoogleSitemaps\Extensions\GoogleSitemapExtension
public
- canIncludeInGoogleSitemap()
- getChangeFrequency() — Returns a pages change frequency calculated by pages age and number of versions. Google expects always, hourly, daily, weekly, monthly, yearly or never as values.
- getGooglePriority() — The default value of the priority field depends on the depth of the page in the site tree, so it must be calculated dynamically.
- onAfterPublish()
- onAfterUnpublish()