Contao\Database::lockTables PHP Метод

lockTables() публичный Метод

Lock one or more tables
public lockTables ( array $arrTables )
$arrTables array An array of table names to be locked
    public function lockTables($arrTables)
    {
        $arrLocks = array();
        foreach ($arrTables as $table => $mode) {
            $arrLocks[] = $this->resConnection->quoteIdentifier($table) . ' ' . $mode;
        }
        $this->resConnection->exec('LOCK TABLES ' . implode(', ', $arrLocks) . ';');
    }