original_string: public static function request_review_of_user_evidence_linked_competencies($id) {
          $userevidence = new user_evidence($id);
          $context = $userevidence->get_context();
          $userid = $userevidence->get('userid');
  
          if (!$userevidence->can_manage()) {
              throw new required_capability_exception($context, 'moodle/competency:userevidencemanage', 'nopermissions', '');
          }
  
          $usercompetencies = user_evidence_competency::get_user_competencies_by_userevidenceid($id);
          foreach ($usercompetencies as $usercompetency) {
              if ($usercompetency->get('status') == user_competency::STATUS_IDLE) {
                  static::user_competency_request_review($userid, $usercompetency->get('competencyid'));
              }
          }
  
          return true;
      }
code: public static function request_review_of_user_evidence_linked_competencies($id) {
          $userevidence = new user_evidence($id);
          $context = $userevidence->get_context();
          $userid = $userevidence->get('userid');
  
          if (!$userevidence->can_manage()) {
              throw new required_capability_exception($context, 'moodle/competency:userevidencemanage', 'nopermissions', '');
          }
  
          $usercompetencies = user_evidence_competency::get_user_competencies_by_userevidenceid($id);
          foreach ($usercompetencies as $usercompetency) {
              if ($usercompetency->get('status') == user_competency::STATUS_IDLE) {
                  static::user_competency_request_review($userid, $usercompetency->get('competencyid'));
              }
          }
  
          return true;
      }
code_tokens: public static function request_review_of_user_evidence_linked_competencies ( $ id ) { $ userevidence = new user_evidence ( $ id ) ; $ context = $ userevidence -> get_context ( ) ; $ userid = $ userevidence -> get ( 'userid' ) ; if ( ! $ userevidence -> can_manage ( ) ) { throw new required_capability_exception ( $ context , 'moodle/competency:userevidencemanage' , 'nopermissions' , '' ) ; } $ usercompetencies = user_evidence_competency :: get_user_competencies_by_userevidenceid ( $ id ) ; foreach ( $ usercompetencies as $ usercompetency ) { if ( $ usercompetency -> get ( 'status' ) == user_competency :: STATUS_IDLE ) { static :: user_competency_request_review ( $ userid , $ usercompetency -> get ( 'competencyid' ) ) ; } } return true ; }
docstring: Send request review for user evidence competencies.
  
  @param  int $id The user evidence ID.
  @return bool
docstring_tokens: Send request review for user evidence competencies .