From a9019b909942bdb59cfc55c04ae9eaff8fb4617d Mon Sep 17 00:00:00 2001 From: Roland Lehmann Date: Sat, 11 Jun 2011 16:38:31 +0200 Subject: [PATCH] added some documentation --- code/GoogleSitemap.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/GoogleSitemap.php b/code/GoogleSitemap.php index 02ee321..61c73ea 100644 --- a/code/GoogleSitemap.php +++ b/code/GoogleSitemap.php @@ -67,12 +67,16 @@ class GoogleSitemap extends Controller { * and pushes the class name to the registered DataObjects. * Note that all registered DataObjects need the method AbsoluteLink(). * - * @param string $className name of DataObject to register - * @param string $changeFreq + * @param string $className name of DataObject to register + * @param string $changeFreq how often is this DataObject updated? + * Possible values: + * always, hourly, daily, weekly, monthly, yearly, never + * @param string $priority How important is this DataObject in comparison to other urls? + * Possible values: 0.1, 0.2 ... , 0.9, 1.0 * * @return void */ - public static function register_dataobject($className, $changeFreq = 'monthly', $priority = 0.6) { + public static function register_dataobject($className, $changeFreq = 'monthly', $priority = '0.6') { if (!self::is_registered($className)) { Object::add_extension($className, 'GoogleSitemapDecorator'); self::$google_sitemap_dataobjects[] = $className;