ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules 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
 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.

References $db.

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

Member Function Documentation

◆ releaseRandomPassBuildLock()

ilTestProcessLockerDb::releaseRandomPassBuildLock ( )

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

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

◆ releaseTestStartLockCheckLock()

ilTestProcessLockerDb::releaseTestStartLockCheckLock ( )

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.

References ilDB\LOCK_WRITE.

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

◆ requestTestStartLockCheckLock()

ilTestProcessLockerDb::requestTestStartLockCheckLock ( )

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

References ilDB\LOCK_WRITE.

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

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: