Proyectos de Subversion Moodle

Rev

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

Rev 110 Rev 111
Línea 37... Línea 37...
37
    {
37
    {
38
        // require js for commenting
38
        // require js for commenting
39
        comment::init();
39
        comment::init();
40
    }*/
40
    }*/
Línea -... Línea 41...
-
 
41
 
-
 
42
    public function applicable_formats()
-
 
43
    {
-
 
44
 
-
 
45
        return [
-
 
46
            'all' => false,
-
 
47
            'my' => false,
-
 
48
            'admin' => false,
-
 
49
            'course' => false,
-
 
50
            'course-view' => true,
-
 
51
            'enrol' => true,
-
 
52
        ];
-
 
53
    }
41
 
54
 
42
    function specialization()
55
    function specialization()
43
    {
56
    {
44
        global $CFG, $DB;
57
        global $CFG, $DB;
45
        if (empty($this->config)) {
58
        if (empty($this->config)) {
Línea 50... Línea 63...
50
            $this->title = 'Comments';
63
            $this->title = 'Comments';
51
        } else {
64
        } else {
52
            $this->title = get_string('pluginname', 'block_comments');
65
            $this->title = get_string('pluginname', 'block_comments');
53
        }
66
        }
54
    }
67
    }
-
 
68
 
55
    function applicable_formats()
69
    /*function applicable_formats()
56
    {
70
    {
57
        return array('all' => true);
71
        return array('all' => true);
58
    }
72
    }*/
Línea 59... Línea 73...
59
 
73
 
60
    function instance_allow_multiple()
74
    function instance_allow_multiple()
61
    {
75
    {
62
        return false;
76
        return false;