Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 1000... Línea 1000...
1000
            return [];
1000
            return [];
1001
        }
1001
        }
1002
    }
1002
    }
Línea 1003... Línea 1003...
1003
 
1003
 
-
 
1004
    /**
-
 
1005
     * Whether to show the preuploaded presentation on the activity page.
-
 
1006
     *
-
 
1007
     * @return bool
-
 
1008
     */
-
 
1009
    public function should_show_presentation(): bool {
-
 
1010
        // Users with the correct capability should always be able to see presentation file.
-
 
1011
        if (has_capability('mod/bigbluebuttonbn:seepresentation', $this->get_context())) {
-
 
1012
            return true;
-
 
1013
        }
-
 
1014
        if (get_config('mod_bigbluebuttonbn', 'showpresentation_editable')) {
-
 
1015
            return (bool) $this->get_instance_var('showpresentation');
-
 
1016
        }
-
 
1017
        return (bool) get_config('mod_bigbluebuttonbn', 'showpresentation_default');
-
 
1018
    }
-
 
1019
 
1004
    /**
1020
    /**
1005
     * Whether the current time is before the scheduled start time.
1021
     * Whether the current time is before the scheduled start time.
1006
     *
1022
     *
1007
     * @return bool
1023
     * @return bool
1008
     */
1024
     */
Línea 1132... Línea 1148...
1132
     */
1148
     */
1133
    public function get_logout_url(): moodle_url {
1149
    public function get_logout_url(): moodle_url {
1134
        return new moodle_url('/mod/bigbluebuttonbn/bbb_view.php', [
1150
        return new moodle_url('/mod/bigbluebuttonbn/bbb_view.php', [
1135
            'action' => 'logout',
1151
            'action' => 'logout',
1136
            'id' => $this->get_cm()->id,
1152
            'id' => $this->get_cm()->id,
1137
            'courseid' => $this->get_cm()->course // Used to find the course if ever the activity is deleted
1153
            'courseid' => $this->get_cm()->course, // Used to find the course if ever the activity is deleted
1138
            // while the meeting is running.
1154
            // while the meeting is running.
1139
        ]);
1155
        ]);
1140
    }
1156
    }
Línea 1141... Línea 1157...
1141
 
1157