Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
lesson_page_answer Class Reference
Inheritance diagram for lesson_page_answer:
lesson_base

Public Member Functions

 __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 Public Member Functions

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.
 

Protected Attributes

stdClass $properties
 An object containing properties.
 

Member Function Documentation

◆ __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
str$key
Return values
mixed

◆ __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
string$key
Return values
bool

◆ __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
string$key
mixed$value

◆ 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
stdClass$properties
lesson_page$page
Return values
array

◆ get_files()

lesson_page_answer::get_files ( $includedirs = true,
$updatedsince = 0 )

Get files from the answer area file.

Parameters
bool$includedirswhether or not include directories
int$updatedsincereturn files updated since this time
Return values
arraylist of stored_file objects
Since
Moodle 3.2

◆ load()

static lesson_page_answer::load ( $id)
static

Loads an page answer from the DB.

Parameters
int$id
Return values
lesson_page_answer

◆ 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
stdClass

Reimplemented in lesson_page.


The documentation for this class was generated from the following file: