Proyectos de Subversion Moodle

Rev

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

Rev 502 Rev 503
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,
14
 
19
      'course' => false,
15
    return [
20
      'course-view' => true,
16
      'all' => true
21
      'enrol' => true,
Línea -... Línea 22...
-
 
22
    ];
-
 
23
  }
-
 
24
 
-
 
25
  function specialization()
-
 
26
  {
-
 
27
    global $CFG, $DB;
-
 
28
    if (empty($this->config)) {
-
 
29
      $this->instance->defaultregion = 'bellow-content';
-
 
30
      $this->instance->region = 'bellow-content';
-
 
31
      $DB->update_record('block_instances', $this->instance);
-
 
32
 
-
 
33
      $this->title = 'Students feedback';
-
 
34
    } else {
-
 
35
      $this->title = get_string('pluginname', 'block_cesa_course_rating');
17
    ];
36
    }
18
  }
37
  }
19
 
38
 
20
  function instance_allow_multiple()
39
  function instance_allow_multiple()