A qubaid_condition for finding all the question usages belonging to a particular user and quiz combination.  
 More...
 | 
| 
  | $from | 
|   | 
| 
  | $params | 
|   | 
| 
  | $usageidcolumn | 
|   | 
| 
  | $where | 
|   | 
A qubaid_condition for finding all the question usages belonging to a particular user and quiz combination. 
- Copyright
 - 2018 Andrew Nicols andrw.nosp@m.e@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k 
 
- License
 - http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
 
 
◆ __construct()
      
        
          | qubaids_for_quiz_user::__construct  | 
          ( | 
            | 
          $quizid,  | 
        
        
           | 
           | 
            | 
          $userid,  | 
        
        
           | 
           | 
            | 
          $includepreviews = true,  | 
        
        
           | 
           | 
            | 
          $onlyfinished = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor for this qubaid. 
- Parameters
 - 
  
    | int | $quizid | The quiz to search.  | 
    | int | $userid | The user to filter on  | 
    | bool | $includepreviews | Whether to include preview attempts  | 
    | bool | $onlyfinished | Whether to only include finished attempts or not  | 
  
   
Reimplemented from qubaid_join.
 
 
◆ from_question_attempts()
  
  
      
        
          | qubaid_join::from_question_attempts  | 
          ( | 
            | 
          $alias | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Get the SQL fragment to go in a FROM clause. 
The SQL that needs to go in the FROM clause when trying to select records from the 'question_attempts' table based on this qubaid_condition.
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
Reimplemented from qubaid_condition.
 
 
◆ from_where_params()
  
  
      
        
          | qubaid_join::from_where_params  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ get_hash_code()
  
  
      
        
          | qubaid_condition::get_hash_code  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
- Return values
 - 
  
    | string | 40-character hash code that uniquely identifies the combination of properties and class name of this qubaid condition.  | 
  
   
 
 
◆ usage_id_in()
  
  
      
        
          | qubaid_join::usage_id_in  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
- Return values
 - 
  
    | string | SQL that can use used in a WHERE qubaid IN (...) query. This method returns the "IN (...)" part.  | 
  
   
Reimplemented from qubaid_condition.
 
 
◆ usage_id_in_params()
  
  
      
        
          | qubaid_join::usage_id_in_params  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
 
◆ where()
- Return values
 - 
  
    | string | the SQL that needs to go in the where clause.  | 
  
   
Reimplemented from qubaid_condition.
 
 
The documentation for this class was generated from the following file: