Proyectos de Subversion Moodle

Rev

Rev 979 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 979 Rev 1046
Línea 52... Línea 52...
52
    public function instance_allow_multiple()
52
    public function instance_allow_multiple()
53
    {
53
    {
54
        return false;
54
        return false;
55
    }
55
    }
Línea -... Línea 56...
-
 
56
 
-
 
57
    function specialization()
-
 
58
    {
-
 
59
        global $CFG, $DB;
-
 
60
        if (empty($this->config)) {
-
 
61
            $this->instance->defaultregion = 'side-pre';
-
 
62
            $this->instance->region = 'side-pre';
-
 
63
            $DB->update_record('block_instances', $this->instance);
-
 
64
 
-
 
65
            $this->title = 'Apuntes y resumen';
-
 
66
        } else {
-
 
67
            $this->title = get_string('pluginname', 'block_cesa_notes');
-
 
68
        }
-
 
69
    }
56
 
70
 
57
    /**
71
    /**
58
     * The content object.
72
     * The content object.
59
     *
73
     *
60
     * @return stdObject
74
     * @return stdObject