Moodle  2.2.1
http://www.collinsharper.com
oci_native_moodle_temptables Class Reference
Inheritance diagram for oci_native_moodle_temptables:
Collaboration diagram for oci_native_moodle_temptables:

Public Member Functions

 __construct ($mdb, $unique_session_id)
 add_temptable ($tablename)

Protected Attributes

 $unique_session_id
 $counter

Detailed Description

Definition at line 35 of file oci_native_moodle_temptables.php.


Constructor & Destructor Documentation

__construct ( mdb,
unique_session_id 
)

Creates new moodle_temptables instance

Parameters:
objectmoodle_database instance

Definition at line 44 of file oci_native_moodle_temptables.php.


Member Function Documentation

add_temptable ( tablename)

Add one temptable to the store.

Overriden because OCI only support global temptables, so we need to change completely the name, based in unique session identifier, to get local-like temp tables support tables before the prefix.

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.

Parameters:
string$tablenamename without prefix of the table created as temptable

Reimplemented from moodle_temptables.

Definition at line 65 of file oci_native_moodle_temptables.php.


Field Documentation

$counter [protected]

Definition at line 38 of file oci_native_moodle_temptables.php.

$unique_session_id [protected]

Definition at line 37 of file oci_native_moodle_temptables.php.


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