]> git.mjollnir.org Git - moodle.git/commitdiff
added comment for new specialization function
authordhawes <dhawes>
Mon, 25 Oct 2004 00:09:47 +0000 (00:09 +0000)
committerdhawes <dhawes>
Mon, 25 Oct 2004 00:09:47 +0000 (00:09 +0000)
blocks/moodleblock.class.php

index dfb34d73bc9593e19a207491cceeaf0f64d60d87..4d59f1995e7e58f230954f132d90152d51ef0d44 100644 (file)
@@ -290,6 +290,11 @@ class MoodleBlock {
         $this->specialization();
     }
 
+    /**
+     * This function is called on your subclass right after an instance is loaded
+     * Use this function to act on instance data just after it's loaded and before anything else is done
+     * For instance: if your block will have different title's dependant on location (site, course, blog, etc)
+     */
     function specialization() {
         // Just to make sure that this method exists.
         return;