]> git.mjollnir.org Git - moodle.git/commitdiff
Slight change to the HOWTO to be more clear.
authordefacer <defacer>
Sat, 20 Nov 2004 19:36:47 +0000 (19:36 +0000)
committerdefacer <defacer>
Sat, 20 Nov 2004 19:36:47 +0000 (19:36 +0000)
Removed the $course var from MoodleBlock (useless now).

blocks/HOWTO.html
blocks/moodleblock.class.php

index 7cad76d2a3f700e11b60eb9a2e2316f7c27f24cd..c2dd41146815deef929af51f58d77bef39c37715 100644 (file)
 
     <h3>I Just Hear Static</h3>
 
-    <p>In order to get our block to actually display something on screen, we need to add one more method. All together now:</p>
+    <p>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:</p>
 
     <pre class="code">function get_content() {
     if ($this->content !== NULL) {
index 4ea24d6dbc30590bbd62c69a6e802af2de93ff9c..721c426233e03b024bca964deb7dad6fdfe61bc5 100644 (file)
@@ -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