public function lockTables($arrTables)
{
$arrLocks = array();
foreach ($arrTables as $table => $mode) {
$arrLocks[] = $this->resConnection->quoteIdentifier($table) . ' ' . $mode;
}
$this->resConnection->exec('LOCK TABLES ' . implode(', ', $arrLocks) . ';');
}