| Línea 16... |
Línea 16... |
| 16 |
$this->currentUser = $this->userID == $USER->id;
|
16 |
$this->currentUser = $this->userID == $USER->id;
|
| 17 |
$this->user = core_user::get_user($this->userID);
|
17 |
$this->user = core_user::get_user($this->userID);
|
| 18 |
$this->title = get_string($title);
|
18 |
$this->title = get_string($title);
|
| 19 |
$this->blockManager = $PAGE->blocks;
|
19 |
$this->blockManager = $PAGE->blocks;
|
| 20 |
$this->regionName = 'side-pre'; // Puedes cambiar la región si lo necesitas
|
20 |
$this->regionName = 'side-pre'; // Puedes cambiar la región si lo necesitas
|
| 21 |
$this->blockNames = ['cesa_course_rating', 'comments', 'messageteacher'];
|
21 |
$this->blockNames = ['cesa_course_rating', 'comments', 'mynotes'];
|
| 22 |
$this->blockExists = true;
|
22 |
$this->blockExists = true;
|
| Línea 23... |
Línea 23... |
| 23 |
|
23 |
|
| 24 |
if (!$this->user || !core_user::is_real_user($this->userID)) {
|
24 |
if (!$this->user || !core_user::is_real_user($this->userID)) {
|
| 25 |
throw new moodle_exception('invaliduser', 'error');
|
25 |
throw new moodle_exception('invaliduser', 'error');
|