Línea 15... |
Línea 15... |
15 |
$this->userID = optional_param('userid', $USER->id, PARAM_INT);
|
15 |
$this->userID = optional_param('userid', $USER->id, PARAM_INT);
|
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-post'; // Puedes cambiar la región si lo necesitas
|
21 |
$this->blockNames = ['cesa_course_rating', 'comments', 'mynotes'];
|
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)) {
|