Slight change to the HOWTO to be more clear.

Removed the $course var from MoodleBlock (useless now).
This commit is contained in:
defacer 2004-11-20 19:36:47 +00:00
parent 7e8dc20869
commit 331063054a
2 changed files with 1 additions and 7 deletions

View File

@ -134,7 +134,7 @@
<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) {

View 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