|  | 
|  | __get ($key) | 
|  | Magic get method. 
 | 
|  | 
|  | __isset ($key) | 
|  | Stupid PHP needs an isset magic method if you use the get magic method and still want empty calls to work.... 
 | 
|  | 
|  | __set ($key, $value) | 
|  | Magic property method. 
 | 
|  | 
|  | get_files ($includedirs=true, $updatedsince=0) | 
|  | Get files from the answer area file. 
 | 
|  | 
|  | properties () | 
|  | If implemented should create a new instance, save it in the DB and return it. 
 | 
|  | 
|  | 
| static | create ($properties, lesson_page $page) | 
|  | Given an object of properties and a page created answer(s) and saves them in the database. 
 | 
|  | 
| static | load ($id) | 
|  | Loads an page answer from the DB. 
 | 
|  | 
|  | 
| stdClass | $properties | 
|  | An object containing properties. 
 | 
|  | 
◆ __get()
  
  | 
        
          | lesson_base::__get | ( |  | $key | ) |  |  | inherited | 
 
Magic get method. 
Attempts to call a get_$key method to return the property and ralls over to return the raw property
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ __isset()
  
  | 
        
          | lesson_base::__isset | ( |  | $key | ) |  |  | inherited | 
 
Stupid PHP needs an isset magic method if you use the get magic method and still want empty calls to work.... 
blah ~!
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ __set()
  
  | 
        
          | lesson_base::__set | ( |  | $key, |  
          |  |  |  | $value ) |  | inherited | 
 
Magic property method. 
Attempts to call a set_$key method if one exists otherwise falls back to simply set the property
- Parameters
- 
  
  
 
 
◆ create()
  
  | 
        
          | static lesson_page_answer::create | ( |  | $properties, |  
          |  |  | lesson_page | $page ) |  | static | 
 
Given an object of properties and a page created answer(s) and saves them in the database. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ get_files()
      
        
          | lesson_page_answer::get_files | ( |  | $includedirs = true, | 
        
          |  |  |  | $updatedsince = 0 ) | 
      
 
Get files from the answer area file. 
- Parameters
- 
  
    | bool | $includedirs | whether or not include directories |  | int | $updatedsince | return files updated since this time |  
 
- Return values
- 
  
  
- Since
- Moodle 3.2 
 
 
◆ load()
  
  | 
        
          | static lesson_page_answer::load | ( |  | $id | ) |  |  | static | 
 
Loads an page answer from the DB. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ properties()
  
  | 
        
          | lesson_base::properties | ( |  | ) |  |  | inherited | 
 
If implemented should create a new instance, save it in the DB and return it. 
If implemented should load an instance from the DB and return it Fetches all of the properties of the object 
- Return values
- 
  
  
Reimplemented in lesson_page.
 
 
The documentation for this class was generated from the following file: