Class used to return completion progress information.  
 More...
Class used to return completion progress information. 
- Copyright
 - 2017 Mark Nelson markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om 
 
- License
 - http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
 
 
◆ get_course_progress_percentage()
  
  
      
        
          | static core_completion\progress::get_course_progress_percentage  | 
          ( | 
            | 
          $course,  | 
         
        
           | 
           | 
            | 
          $userid = 0  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Returns the course percentage completed by a certain user, returns null if no completion data is available. 
- Parameters
 - 
  
    | stdClass | $course | Moodle course object  | 
    | int | $userid | The id of the user, 0 for the current user  | 
  
   
- Return values
 - 
  
    | null|float | The percentage, or null if completion is not supported in the course, or there are no activities that support completion.  | 
  
   
 
 
The documentation for this class was generated from the following file: