From: dhawes Date: Mon, 25 Oct 2004 00:09:47 +0000 (+0000) Subject: added comment for new specialization function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=43038ce6d75370c525363541dff515c39602fc15;p=moodle.git added comment for new specialization function --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index dfb34d73bc..4d59f1995e 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -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;