session, page, globals and logger are built using factories.
[platal.git] / classes / plmodule.php
index 42cd62b..33de370 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -56,6 +56,13 @@ abstract class PLModule
                      'type'  => $type);
     }
 
+    /** Register a hook that points to a wiki page.
+     */
+    public function make_wiki_hook($auth = AUTH_PUBLIC, $perms = 'user', $type = DO_AUTH)
+    {
+        return Platal::wiki_hook($auth, $perms, $type);
+    }
+
     /** Include a 'module-specific' file.
      * Module specific includes must be in the in the path modules/{modulename}.
      */