Moodle  2.2.1
http://www.collinsharper.com
context_to_string_translator Class Reference

Public Member Functions

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

Protected Member Functions

 generate_context_to_string_array ($contexts)

Protected Attributes

 $contexttostringarray = array()

Detailed Description

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

Definition at line 1246 of file questionlib.php.


Constructor & Destructor Documentation

__construct ( contexts)

Definition at line 1252 of file questionlib.php.

Here is the call graph for this function:


Member Function Documentation

context_to_string ( contextid)

Definition at line 1256 of file questionlib.php.

generate_context_to_string_array ( contexts) [protected]

Definition at line 1265 of file questionlib.php.

Here is the caller graph for this function:

string_to_context ( contextname)

Definition at line 1260 of file questionlib.php.


Field Documentation

$contexttostringarray = array() [protected]

Definition at line 1250 of file questionlib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations