ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
 requestTestStartLockCheckLock ()
 
 releaseTestStartLockCheckLock ()
 
 requestRandomPassBuildLock ()
 
 releaseRandomPassBuildLock ()
 

Protected Attributes

 $db
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

23 {
24 $this->db = $db;
25 }

References $db.

Member Function Documentation

◆ releaseRandomPassBuildLock()

ilTestProcessLockerDb::releaseRandomPassBuildLock ( )

Reimplemented from ilTestProcessLocker.

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

64 {
65 $this->db->unlockTables();
66 }

◆ releaseTestStartLockCheckLock()

ilTestProcessLockerDb::releaseTestStartLockCheckLock ( )

Reimplemented from ilTestProcessLocker.

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

37 {
38 $this->db->unlockTables();
39 }

◆ requestRandomPassBuildLock()

ilTestProcessLockerDb::requestRandomPassBuildLock (   $withTaxonomyTables = false)

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

42 {
43 $tables = array();
44
45 $tables[] = array('name' => 'tst_rnd_cpy', 'type' => ilDB::LOCK_WRITE);
46 $tables[] = array('name' => 'qpl_questions', 'type' => ilDB::LOCK_WRITE);
47 $tables[] = array('name' => 'qpl_qst_type', 'type' => ilDB::LOCK_WRITE);
48 $tables[] = array('name' => 'tst_test_rnd_qst', 'type' => ilDB::LOCK_WRITE);
49 $tables[] = array('name' => 'tst_test_rnd_qst', 'type' => ilDB::LOCK_WRITE, 'sequence' => true);
50 $tables[] = array('name' => 'il_pluginslot', 'type' => ilDB::LOCK_WRITE);
51 $tables[] = array('name' => 'il_plugin', 'type' => ilDB::LOCK_WRITE);
52
53 if( $withTaxonomyTables )
54 {
55 $tables[] = array('name' => 'tax_tree s', 'type' => ilDB::LOCK_WRITE);
56 $tables[] = array('name' => 'tax_tree t', 'type' => ilDB::LOCK_WRITE);
57 $tables[] = array('name' => 'tax_node_assignment', 'type' => ilDB::LOCK_WRITE);
58 }
59
60 $this->db->lockTables($tables);
61 }
const LOCK_WRITE
Definition: class.ilDB.php:30

References ilDB\LOCK_WRITE.

◆ requestTestStartLockCheckLock()

ilTestProcessLockerDb::requestTestStartLockCheckLock ( )

Reimplemented from ilTestProcessLocker.

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

28 {
29 $tables = array(
30 array('name' => 'tst_active', 'type' => ilDB::LOCK_WRITE)
31 );
32
33 $this->db->lockTables($tables);
34 }

References ilDB\LOCK_WRITE.

Field Documentation

◆ $db

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: