mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Slight change to the HOWTO to be more clear.
Removed the $course var from MoodleBlock (useless now).
This commit is contained in:
parent
7e8dc20869
commit
331063054a
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user