From: defacer Date: Sat, 20 Nov 2004 19:36:47 +0000 (+0000) Subject: Slight change to the HOWTO to be more clear. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=331063054a240e16a0bc369275491977cb20b7fd;p=moodle.git Slight change to the HOWTO to be more clear. Removed the $course var from MoodleBlock (useless now). --- diff --git a/blocks/HOWTO.html b/blocks/HOWTO.html index 7cad76d2a3..c2dd411468 100644 --- a/blocks/HOWTO.html +++ b/blocks/HOWTO.html @@ -134,7 +134,7 @@

I Just Hear Static

-

In order to get our block to actually display something on screen, we need to add one more method. All together now:

+

In order to get our block to actually display something on screen, we need to add one more method to our class (before the final closing brace in our file). All together now:

function get_content() {
     if ($this->content !== NULL) {
diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php
index 4ea24d6dbc..721c426233 100644
--- a/blocks/moodleblock.class.php
+++ b/blocks/moodleblock.class.php
@@ -47,12 +47,6 @@ class MoodleBlock {
      */
     var $title         = NULL;
 
-    /**
-     * A course object that this block is associated with. Take care - it may be NULL.
-     * @var COURSE $course
-     */
-    var $course        = NULL;
-
     /**
      * The type of content that this block creates. Currently support options - BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT, BLOCK_TYPE_NUKE
      * @var int $content_type