Proyectos de Subversion Moodle

Rev

Rev 494 | Rev 502 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 494 Rev 501
Línea 11... Línea 11...
11
 
11
 
12
  public function applicable_formats()
12
  public function applicable_formats()
Línea 13... Línea 13...
13
  {
13
  {
14
 
-
 
15
    return [
-
 
16
      'all' => false,
-
 
17
      'my' => false,
-
 
18
      'admin' => false,
-
 
19
      'course' => false,
14
 
20
      'course-view' => true,
15
    return [
21
      'enrol' => true,
16
      'all' => true
Línea -... Línea 17...
-
 
17
    ];
22
    ];
18
  }
23
  }
19
 
24
 
-
 
25
  function specialization()
-
 
26
  {
-
 
27
    global $CFG, $DB;
-
 
28
    if (empty($this->config)) {
-
 
29
      $this->instance->defaultregion = 'side-pre';
-
 
30
      $this->instance->region = 'side-pre';
-
 
31
      $DB->update_record('block_instances', $this->instance);
-
 
32
 
20
 
33
      $this->title = 'Students feedback';
21
  function specialization()
34
    } else {
22
  {
Línea 35... Línea 23...
35
      $this->title = get_string('pluginname', 'block_cesa_course_rating');
23
    $this->title = get_string('pluginname', 'block_cesa_course_rating');
36
    }
24
    comment::init();
37
  }
25
  }