Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
context_to_string_translator Class Reference

Converts contextlevels to strings and back to help with reading/writing contexts to/from import/export files. More...

Public Member Functions

 __construct ($contexts)
 
 context_to_string ($contextid)
 
 string_to_context ($contextname)
 

Protected Member Functions

 generate_context_to_string_array ($contexts)
 

Protected Attributes

array $contexttostringarray = array()
 used to translate between contextids and strings for this context.
 

Detailed Description

Converts contextlevels to strings and back to help with reading/writing contexts to/from import/export files.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

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