| 
|   | __construct ($data, $number, $notused1, $notused2, $modinfo, $notused3) | 
|   | Constructs object from database information plus extra required data.  More...
  | 
|   | 
|   | __empty ($name) | 
|   | Magic method to check if the property is empty.  More...
  | 
|   | 
|   | __get ($name) | 
|   | Magic method to retrieve the property, this is either basic section property or availability information or additional properties added by course format.  More...
  | 
|   | 
|   | __isset ($name) | 
|   | Magic method to check if the property is set.  More...
  | 
|   | 
|   | get_available () | 
|   | Finds whether this section is available at the moment for the current user.  More...
  | 
|   | 
|   | getIterator () | 
|   | Implementation of IteratorAggregate::getIterator(), allows to cycle through properties and use convert_to_array().  More...
  | 
|   | 
 | 
| static  | convert_for_section_cache ($section) | 
|   | Prepares section data for inclusion in sectioncache cache, removing items that are set to defaults, and adding availability data if required.  More...
  | 
|   | 
◆ __construct()
      
        
          | section_info::__construct  | 
          ( | 
            | 
          $data,  | 
        
        
           | 
           | 
            | 
          $number,  | 
        
        
           | 
           | 
            | 
          $notused1,  | 
        
        
           | 
           | 
            | 
          $notused2,  | 
        
        
           | 
           | 
            | 
          $modinfo,  | 
        
        
           | 
           | 
            | 
          $notused3  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructs object from database information plus extra required data. 
- Parameters
 - 
  
    | object | $data | Array entry from cached sectioncache  | 
    | int | $number | Section number (array key)  | 
    | int | $notused1 | argument not used (informaion is available in $modinfo)  | 
    | int | $notused2 | argument not used (informaion is available in $modinfo)  | 
    | course_modinfo | $modinfo | Owner (needed for checking availability)  | 
    | int | $notused3 | argument not used (informaion is available in $modinfo)  | 
  
   
 
 
◆ __empty()
      
        
          | section_info::__empty  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
Magic method to check if the property is empty. 
- Parameters
 - 
  
    | string | $name | name of the property  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ __get()
      
        
          | section_info::__get  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
Magic method to retrieve the property, this is either basic section property or availability information or additional properties added by course format. 
- Parameters
 - 
  
    | string | $name | name of the property  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ __isset()
      
        
          | section_info::__isset  | 
          ( | 
            | 
          $name | ) | 
           | 
        
      
 
Magic method to check if the property is set. 
- Parameters
 - 
  
    | string | $name | name of the property  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ convert_for_section_cache()
  
  
      
        
          | static section_info::convert_for_section_cache  | 
          ( | 
            | 
          $section | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Prepares section data for inclusion in sectioncache cache, removing items that are set to defaults, and adding availability data if required. 
Called by build_section_cache in course_modinfo only; do not use otherwise. 
- Parameters
 - 
  
    | object | $section | Raw section data object  | 
  
   
 
 
◆ get_available()
      
        
          | section_info::get_available  | 
          ( | 
           | ) | 
           | 
        
      
 
Finds whether this section is available at the moment for the current user. 
The value can be accessed publicly as $sectioninfo->available, but can be called directly if there is a case when it might be called recursively (you can't call property values recursively).
- Return values
 - 
  
  
 
 
 
◆ getIterator()
      
        
          | section_info::getIterator  | 
          ( | 
           | ) | 
           | 
        
      
 
Implementation of IteratorAggregate::getIterator(), allows to cycle through properties and use convert_to_array(). 
- Return values
 - 
  
  
 
 
 
The documentation for this class was generated from the following file: