ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (string $table_name, ilDBInterface $ilDBInterface) | |
ilTableLock constructor. More... | |
check () | |
lockSequence (bool $lock_bool) | |
Set true/false whether you would like to lock an existing sequence-table, too Without lockSequence(true) sequences are not locked. More... | |
aliasName (string $alias_name) | |
If you use Alias' in your Queries which have to be locked by ilAtomQuery, "LOCK TABLE" needs to lock both of the original table and the alias-table. More... | |
getTableName () | |
setTableName (string $table_name) | |
isLockSequence () | |
setLockSequence (bool $lock_sequence) | |
getAlias () | |
setAlias (string $alias) | |
getLockLevel () | |
setLockLevel (int $lock_level) | |
isChecked () | |
setChecked (bool $checked) | |
Protected Attributes | |
string | $table_name = '' |
bool | $lock_sequence = false |
string | $alias = '' |
int | $lock_level = ilAtomQuery::LOCK_WRITE |
bool | $checked = false |
ilDBInterface | $ilDBInstance |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTableLock
Definition at line 25 of file class.ilTableLock.php.
ilTableLock::__construct | ( | string | $table_name, |
ilDBInterface | $ilDBInterface | ||
) |
ilTableLock constructor.
Definition at line 37 of file class.ilTableLock.php.
References $table_name.
ilTableLock::aliasName | ( | string | $alias_name | ) |
If you use Alias' in your Queries which have to be locked by ilAtomQuery, "LOCK TABLE" needs to lock both of the original table and the alias-table.
Provide the name of your alias here
Implements ilTableLockInterface.
Definition at line 65 of file class.ilTableLock.php.
References setAlias().
ilTableLock::check | ( | ) |
Definition at line 46 of file class.ilTableLock.php.
References ilAtomQueryException\DB_ATOM_LOCK_TABLE_NONEXISTING, ilAtomQueryException\DB_ATOM_LOCK_WRONG_LEVEL, getLockLevel(), getTableName(), ilAtomQuery\LOCK_READ, ilAtomQuery\LOCK_WRITE, and setChecked().
ilTableLock::getAlias | ( | ) |
ilTableLock::getLockLevel | ( | ) |
Definition at line 102 of file class.ilTableLock.php.
References $lock_level.
Referenced by check().
ilTableLock::getTableName | ( | ) |
Definition at line 72 of file class.ilTableLock.php.
References $table_name.
Referenced by check().
ilTableLock::isChecked | ( | ) |
ilTableLock::isLockSequence | ( | ) |
ilTableLock::lockSequence | ( | bool | $lock_bool | ) |
Set true/false whether you would like to lock an existing sequence-table, too Without lockSequence(true) sequences are not locked.
Implements ilTableLockInterface.
Definition at line 58 of file class.ilTableLock.php.
References setLockSequence().
ilTableLock::setAlias | ( | string | $alias | ) |
Definition at line 97 of file class.ilTableLock.php.
References $alias.
Referenced by aliasName().
ilTableLock::setChecked | ( | bool | $checked | ) |
Definition at line 117 of file class.ilTableLock.php.
References $checked.
Referenced by check().
ilTableLock::setLockLevel | ( | int | $lock_level | ) |
ilTableLock::setLockSequence | ( | bool | $lock_sequence | ) |
Definition at line 87 of file class.ilTableLock.php.
References $lock_sequence.
Referenced by lockSequence().
ilTableLock::setTableName | ( | string | $table_name | ) |
|
protected |
Definition at line 29 of file class.ilTableLock.php.
Referenced by getAlias(), and setAlias().
|
protected |
Definition at line 31 of file class.ilTableLock.php.
Referenced by isChecked(), and setChecked().
|
protected |
Definition at line 32 of file class.ilTableLock.php.
|
protected |
Definition at line 30 of file class.ilTableLock.php.
Referenced by getLockLevel(), and setLockLevel().
|
protected |
Definition at line 28 of file class.ilTableLock.php.
Referenced by isLockSequence(), and setLockSequence().
|
protected |
Definition at line 27 of file class.ilTableLock.php.
Referenced by __construct(), getTableName(), and setTableName().