ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilTableLock Class Reference

Class ilTableLock. More...

+ Inheritance diagram for ilTableLock:
+ Collaboration diagram for ilTableLock:

Public Member Functions

 __construct ($table_name, ilDBInterface $ilDBInterface)
 ilTableLock constructor. More...
 
 check ()
 
 lockSequence ($lock_bool)
 
 aliasName ($alias_name)
 
 getTableName ()
 
 setTableName ($table_name)
 
 isLockSequence ()
 
 setLockSequence ($lock_sequence)
 
 getAlias ()
 
 setAlias ($alias)
 
 getLockLevel ()
 
 setLockLevel ($lock_level)
 
 isChecked ()
 
 setChecked ($checked)
 

Protected Attributes

 $table_name = ''
 
 $lock_sequence = false
 
 $alias = ''
 
 $lock_level = ilAtomQuery::LOCK_WRITE
 
 $checked = false
 
 $ilDBInstance
 

Detailed Description

Class ilTableLock.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 9 of file class.ilTableLock.php.

Constructor & Destructor Documentation

◆ __construct()

ilTableLock::__construct (   $table_name,
ilDBInterface  $ilDBInterface 
)

ilTableLock constructor.

Parameters
string$table_name

Definition at line 42 of file class.ilTableLock.php.

References $table_name.

42  {
43  $this->table_name = $table_name;
44  $this->ilDBInstance = $ilDBInterface;
45  }

Member Function Documentation

◆ aliasName()

ilTableLock::aliasName (   $alias_name)
Parameters
$alias_name
Returns
$this

Implements ilTableLockInterface.

Definition at line 78 of file class.ilTableLock.php.

References setAlias().

78  {
79  $this->setAlias($alias_name);
80 
81  return $this;
82  }
+ Here is the call graph for this function:

◆ check()

ilTableLock::check ( )
Exceptions

Definition at line 51 of file class.ilTableLock.php.

References array, ilAtomQueryException\DB_ATOM_LOCK_TABLE_NONEXISTING, ilAtomQueryException\DB_ATOM_LOCK_WRONG_LEVEL, getLockLevel(), getTableName(), ilAtomQuery\LOCK_READ, ilAtomQuery\LOCK_WRITE, and setChecked().

51  {
54  }
55  if (!$this->getTableName() || !$this->ilDBInstance->tableExists($this->getTableName())) {
57  }
58 
59  $this->setChecked(true);
60  }
Class ilAtomQueryException.
Create styles array
The data for the language used.
setChecked($checked)
+ Here is the call graph for this function:

◆ getAlias()

ilTableLock::getAlias ( )
Returns
string

Definition at line 120 of file class.ilTableLock.php.

References $alias.

120  {
121  return $this->alias;
122  }

◆ getLockLevel()

ilTableLock::getLockLevel ( )
Returns
int

Definition at line 136 of file class.ilTableLock.php.

References $lock_level.

Referenced by check().

136  {
137  return $this->lock_level;
138  }
+ Here is the caller graph for this function:

◆ getTableName()

ilTableLock::getTableName ( )
Returns
string

Definition at line 88 of file class.ilTableLock.php.

References $table_name.

Referenced by check().

88  {
89  return $this->table_name;
90  }
+ Here is the caller graph for this function:

◆ isChecked()

ilTableLock::isChecked ( )
Returns
boolean

Definition at line 152 of file class.ilTableLock.php.

References $checked.

152  {
153  return $this->checked;
154  }

◆ isLockSequence()

ilTableLock::isLockSequence ( )
Returns
boolean

Definition at line 104 of file class.ilTableLock.php.

References $lock_sequence.

104  {
105  return $this->lock_sequence;
106  }

◆ lockSequence()

ilTableLock::lockSequence (   $lock_bool)
Parameters
bool$lock_bool
Returns
$this

Implements ilTableLockInterface.

Definition at line 67 of file class.ilTableLock.php.

References setLockSequence().

67  {
68  $this->setLockSequence($lock_bool);
69 
70  return $this;
71  }
setLockSequence($lock_sequence)
+ Here is the call graph for this function:

◆ setAlias()

ilTableLock::setAlias (   $alias)
Parameters
string$alias

Definition at line 128 of file class.ilTableLock.php.

References $alias.

Referenced by aliasName().

128  {
129  $this->alias = $alias;
130  }
+ Here is the caller graph for this function:

◆ setChecked()

ilTableLock::setChecked (   $checked)
Parameters
boolean$checked

Definition at line 160 of file class.ilTableLock.php.

References $checked.

Referenced by check().

160  {
161  $this->checked = $checked;
162  }
+ Here is the caller graph for this function:

◆ setLockLevel()

ilTableLock::setLockLevel (   $lock_level)
Parameters
int$lock_level

Definition at line 144 of file class.ilTableLock.php.

References $lock_level.

144  {
145  $this->lock_level = $lock_level;
146  }

◆ setLockSequence()

ilTableLock::setLockSequence (   $lock_sequence)
Parameters
boolean$lock_sequence

Definition at line 112 of file class.ilTableLock.php.

References $lock_sequence.

Referenced by lockSequence().

112  {
113  $this->lock_sequence = $lock_sequence;
114  }
+ Here is the caller graph for this function:

◆ setTableName()

ilTableLock::setTableName (   $table_name)
Parameters
string$table_name

Definition at line 96 of file class.ilTableLock.php.

References $table_name.

96  {
97  $this->table_name = $table_name;
98  }

Field Documentation

◆ $alias

ilTableLock::$alias = ''
protected

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

Referenced by getAlias(), and setAlias().

◆ $checked

ilTableLock::$checked = false
protected

Definition at line 30 of file class.ilTableLock.php.

Referenced by isChecked(), and setChecked().

◆ $ilDBInstance

ilTableLock::$ilDBInstance
protected

Definition at line 34 of file class.ilTableLock.php.

◆ $lock_level

ilTableLock::$lock_level = ilAtomQuery::LOCK_WRITE
protected

Definition at line 26 of file class.ilTableLock.php.

Referenced by getLockLevel(), and setLockLevel().

◆ $lock_sequence

ilTableLock::$lock_sequence = false
protected

Definition at line 18 of file class.ilTableLock.php.

Referenced by isLockSequence(), and setLockSequence().

◆ $table_name

ilTableLock::$table_name = ''
protected

Definition at line 14 of file class.ilTableLock.php.

Referenced by __construct(), getTableName(), and setTableName().


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