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