ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilTableLock.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/Database/interfaces/interface.ilTableLockInterface.php');
3 
10 {
11 
15  protected $table_name = '';
19  protected $lock_sequence = false;
23  protected $alias = '';
31  protected $checked = false;
35  protected $ilDBInstance;
36 
37 
43  public function __construct($table_name, ilDBInterface $ilDBInterface)
44  {
45  $this->table_name = $table_name;
46  $this->ilDBInstance = $ilDBInterface;
47  }
48 
49 
53  public function check()
54  {
57  }
58  if (!$this->getTableName() || !$this->ilDBInstance->tableExists($this->getTableName())) {
60  }
61 
62  $this->setChecked(true);
63  }
64 
65 
70  public function lockSequence($lock_bool)
71  {
72  $this->setLockSequence($lock_bool);
73 
74  return $this;
75  }
76 
77 
82  public function aliasName($alias_name)
83  {
84  $this->setAlias($alias_name);
85 
86  return $this;
87  }
88 
89 
93  public function getTableName()
94  {
95  return $this->table_name;
96  }
97 
98 
102  public function setTableName($table_name)
103  {
104  $this->table_name = $table_name;
105  }
106 
107 
111  public function isLockSequence()
112  {
113  return $this->lock_sequence;
114  }
115 
116 
121  {
122  $this->lock_sequence = $lock_sequence;
123  }
124 
125 
129  public function getAlias()
130  {
131  return $this->alias;
132  }
133 
134 
138  public function setAlias($alias)
139  {
140  $this->alias = $alias;
141  }
142 
143 
147  public function getLockLevel()
148  {
149  return $this->lock_level;
150  }
151 
152 
156  public function setLockLevel($lock_level)
157  {
158  $this->lock_level = $lock_level;
159  }
160 
161 
165  public function isChecked()
166  {
167  return $this->checked;
168  }
169 
170 
174  public function setChecked($checked)
175  {
176  $this->checked = $checked;
177  }
178 }
setTableName($table_name)
aliasName($alias_name)
lockSequence($lock_bool)
__construct($table_name, ilDBInterface $ilDBInterface)
ilTableLock constructor.
Class ilTableLock.
setLockSequence($lock_sequence)
Interface ilDBInterface.
Class ilTableLockInterface.
Class ilAtomQueryException.
Create styles array
The data for the language used.
setChecked($checked)
setLockLevel($lock_level)