ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Class ilTableLock. More...
Public Member Functions | |
__construct (protected string $table_name, protected \ilDBInterface $ilDBInstance) | |
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 | |
bool | $lock_sequence = false |
string | $alias = '' |
int | $lock_level = ilAtomQuery::LOCK_WRITE |
bool | $checked = false |
Class ilTableLock.
Definition at line 25 of file class.ilTableLock.php.
ilTableLock::__construct | ( | protected string | $table_name, |
protected \ilDBInterface | $ilDBInstance | ||
) |
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 61 of file class.ilTableLock.php.
References setAlias().
ilTableLock::check | ( | ) |
Definition at line 42 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 98 of file class.ilTableLock.php.
References $lock_level.
Referenced by check().
ilTableLock::getTableName | ( | ) |
Definition at line 68 of file class.ilTableLock.php.
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 54 of file class.ilTableLock.php.
References setLockSequence().
ilTableLock::setAlias | ( | string | $alias | ) |
Definition at line 93 of file class.ilTableLock.php.
References $alias.
Referenced by aliasName().
ilTableLock::setChecked | ( | bool | $checked | ) |
Definition at line 113 of file class.ilTableLock.php.
References $checked.
Referenced by check().
ilTableLock::setLockLevel | ( | int | $lock_level | ) |
ilTableLock::setLockSequence | ( | bool | $lock_sequence | ) |
Definition at line 83 of file class.ilTableLock.php.
References $lock_sequence.
Referenced by lockSequence().
ilTableLock::setTableName | ( | string | $table_name | ) |
Definition at line 73 of file class.ilTableLock.php.
|
protected |
Definition at line 28 of file class.ilTableLock.php.
Referenced by getAlias(), and setAlias().
|
protected |
Definition at line 30 of file class.ilTableLock.php.
Referenced by isChecked(), and setChecked().
|
protected |
Definition at line 29 of file class.ilTableLock.php.
Referenced by getLockLevel(), and setLockLevel().
|
protected |
Definition at line 27 of file class.ilTableLock.php.
Referenced by isLockSequence(), and setLockSequence().