ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestProcessLockerDb Class Reference
+ Inheritance diagram for ilTestProcessLockerDb:
+ Collaboration diagram for ilTestProcessLockerDb:

Public Member Functions

 __construct (ilDB $db)
 requestTestStartLockCheckLock ()
 releaseTestStartLockCheckLock ()
 requestRandomPassBuildLock ($withTaxonomyTables=false)
 releaseRandomPassBuildLock ()
- Public Member Functions inherited from ilTestProcessLocker
 requestRandomPassBuildLock ()

Protected Attributes

 $db

Detailed Description

Definition at line 12 of file class.ilTestProcessLockerDb.php.

Constructor & Destructor Documentation

ilTestProcessLockerDb::__construct ( ilDB  $db)
Parameters
ilDB$db

Definition at line 22 of file class.ilTestProcessLockerDb.php.

References $db.

{
$this->db = $db;
}

Member Function Documentation

ilTestProcessLockerDb::releaseRandomPassBuildLock ( )

Reimplemented from ilTestProcessLocker.

Definition at line 63 of file class.ilTestProcessLockerDb.php.

{
$this->db->unlockTables();
}
ilTestProcessLockerDb::releaseTestStartLockCheckLock ( )

Reimplemented from ilTestProcessLocker.

Definition at line 36 of file class.ilTestProcessLockerDb.php.

{
$this->db->unlockTables();
}
ilTestProcessLockerDb::requestRandomPassBuildLock (   $withTaxonomyTables = false)

Definition at line 41 of file class.ilTestProcessLockerDb.php.

References ilDB\LOCK_WRITE.

{
$tables = array();
$tables[] = array('name' => 'tst_rnd_cpy', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'qpl_questions', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'qpl_qst_type', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'tst_test_rnd_qst', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'tst_test_rnd_qst', 'type' => ilDB::LOCK_WRITE, 'sequence' => true);
$tables[] = array('name' => 'il_pluginslot', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'il_plugin', 'type' => ilDB::LOCK_WRITE);
if( $withTaxonomyTables )
{
$tables[] = array('name' => 'tax_tree s', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'tax_tree t', 'type' => ilDB::LOCK_WRITE);
$tables[] = array('name' => 'tax_node_assignment', 'type' => ilDB::LOCK_WRITE);
}
$this->db->lockTables($tables);
}
ilTestProcessLockerDb::requestTestStartLockCheckLock ( )

Reimplemented from ilTestProcessLocker.

Definition at line 27 of file class.ilTestProcessLockerDb.php.

References ilDB\LOCK_WRITE.

{
$tables = array(
array('name' => 'tst_active', 'type' => ilDB::LOCK_WRITE)
);
$this->db->lockTables($tables);
}

Field Documentation

ilTestProcessLockerDb::$db
protected

Definition at line 17 of file class.ilTestProcessLockerDb.php.

Referenced by __construct().


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