|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct ($mdb) | |
| add_temptable ($tablename) | |
| delete_temptable ($tablename) | |
| get_temptables () | |
| is_temptable ($tablename) | |
| get_correct_name ($tablename) | |
| dispose () | |
Protected Attributes | |
| $mdb | |
| $prefix | |
| $temptables | |
Definition at line 46 of file moodle_temptables.php.
| __construct | ( | $ | mdb | ) |
Creates new moodle_temptables instance
| object | moodle_database instance |
Definition at line 56 of file moodle_temptables.php.
| add_temptable | ( | $ | tablename | ) |
Add one temptable to the store
Given one moodle temptable name (without prefix), add it to the store, with the key being the original moodle name and the value being the real db temptable name already prefixed
Override and use this *only* if the database requires modification in the table name.
| string | $tablename | name without prefix of the table created as temptable |
Reimplemented in oci_native_moodle_temptables, and mssql_native_moodle_temptables.
Definition at line 73 of file moodle_temptables.php.
| delete_temptable | ( | $ | tablename | ) |
Delete one temptable from the store
| string | $tablename | name without prefix of the dropped temptable |
Definition at line 83 of file moodle_temptables.php.
| dispose | ( | ) |
Dispose the temptables stuff, checking for wrong situations, informing and recovering from them
Definition at line 124 of file moodle_temptables.php.

| get_correct_name | ( | $ | tablename | ) |
Given one tablename (no prefix), return the name of the corresponding temporary table, If the table isn't a "registered" temp table, returns null
| string | $tablename | name without prefix which corresponding temp tablename needs to know |
Definition at line 114 of file moodle_temptables.php.

| get_temptables | ( | ) |
Returns all the tablenames (without prefix) existing in the store
Definition at line 93 of file moodle_temptables.php.

| is_temptable | ( | $ | tablename | ) |
Returns if one table, based in the information present in the store, is a temp table
| string | $tablename | name without prefix of the table we are asking about |
Definition at line 103 of file moodle_temptables.php.

$mdb [protected] |
Definition at line 48 of file moodle_temptables.php.
$prefix [protected] |
Definition at line 49 of file moodle_temptables.php.
$temptables [protected] |
Definition at line 50 of file moodle_temptables.php.