| Línea 21... | Línea 21... | 
          
            | 21 |  * @copyright 2021 Jun Pataleta
 | 21 |  * @copyright 2021 Jun Pataleta
 | 
          
            | 22 |  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 | 22 |  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 | 
          
            | 23 |  */
 | 23 |  */
 | 
          
            | Línea 24... | Línea 24... | 
          
            | 24 |  
 | 24 |  
 | 
          
            | - |   | 25 | /**
 | 
          
            | - |   | 26 |  * Returns true if the current role is faked by switching role feature
 | 
          
            | 25 | /**
 | 27 |  *
 | 
          
            | - |   | 28 |  * @return bool
 | 
          
            | 26 |  * @deprecated since Moodle 3.11
 | 29 |  * @deprecated since Moodle 4.5 - please do not use this function any more, {@see is_role_switched}
 | 
          
            | - |   | 30 |  */
 | 
          
            | 27 |  */
 | 31 | #[\core\attribute\deprecated('is_role_switched', since: '4.5', mdl: 'MDL-72424')]
 | 
          
            | - |   | 32 | function feedback_check_is_switchrole(): bool {
 | 
          
            | 28 | function feedback_get_completion_state() {
 | 33 |     global $USER;
 | 
          
            | 29 |     $completionclass = \mod_feedback\completion\custom_completion::class;
 | 34 |     \core\deprecation::emit_deprecation(__FUNCTION__);
 | 
          
            | 30 |     throw new coding_exception(__FUNCTION__ . "() has been removed, please use the '{$completionclass}' class instead");
 | 35 |     return isset($USER->switchrole) && is_array($USER->switchrole) && count($USER->switchrole) > 0;
 |