original_string: public function questions_in_use(array $questionids, qubaid_condition $qubaids) {
          list($test, $params) = $this->db->get_in_or_equal($questionids);
          return $this->db->record_exists_select('question_attempts',
                  'questionid ' . $test . ' AND questionusageid ' .
                  $qubaids->usage_id_in(), $params + $qubaids->usage_id_in_params());
      }
code: public function questions_in_use(array $questionids, qubaid_condition $qubaids) {
          list($test, $params) = $this->db->get_in_or_equal($questionids);
          return $this->db->record_exists_select('question_attempts',
                  'questionid ' . $test . ' AND questionusageid ' .
                  $qubaids->usage_id_in(), $params + $qubaids->usage_id_in_params());
      }
code_tokens: public function questions_in_use ( array $ questionids , qubaid_condition $ qubaids ) { list ( $ test , $ params ) = $ this -> db -> get_in_or_equal ( $ questionids ) ; return $ this -> db -> record_exists_select ( 'question_attempts' , 'questionid ' . $ test . ' AND questionusageid ' . $ qubaids -> usage_id_in ( ) , $ params + $ qubaids -> usage_id_in_params ( ) ) ; }
docstring: Are any of these questions are currently in use?
  
  You should call {@link question_engine::questions_in_use()}
  rather than calling this method directly.
  
  @param array $questionids of question ids.
  @param qubaid_condition $qubaids ids of the usages to consider.
  @return bool whether any of these questions are being used by any of
  those usages.
docstring_tokens: Are any of these questions are currently in use?