code/libraries/joomlatools/library/database/adapter/mysqli.php
public function lockTable($table)
    {
        $query = 'LOCK TABLES '.$this->quoteIdentifier($this->getTableNeedle().$table).' WRITE';

        // Create command chain context.
        $context = $this->getContext();
        $context->table = $table;
        $context->query = $query;

        if($this->invokeCommand('before.lock', $context) !== false)
        {
            $context->result = $this->execute($context->query, KDatabase::RESULT_USE);
            $this->invokeCommand('after.lock', $context);
        }

        return $context->result;
    }
public function lockTable($table)
    {
        $query = 'LOCK TABLES '.$this->quoteIdentifier($this->getTableNeedle().$table).' WRITE';

        // Create command chain context.
        $context = $this->getContext();
        $context->table = $table;
        $context->query = $query;

        if($this->invokeCommand('before.lock', $context) !== false)
        {
            $context->result = $this->execute($context->query, KDatabase::RESULT_USE);
            $this->invokeCommand('after.lock', $context);
        }

        return $context->result;
    }
public function lockTable ( $ table ) { $ query = 'LOCK TABLES ' . $ this -> quoteIdentifier ( $ this -> getTableNeedle ( ) . $ table ) . ' WRITE' ; // Create command chain context. $ context = $ this -> getContext ( ) ; $ context -> table = $ table ; $ context -> query = $ query ; if ( $ this -> invokeCommand ( 'before.lock' , $ context ) !== false ) { $ context -> result = $ this -> execute ( $ context -> query , KDatabase :: RESULT_USE ) ; $ this -> invokeCommand ( 'after.lock' , $ context ) ; } return $ context -> result ; }
Locks a table

@param   string $table  The name of the table.
@return  boolean  TRUE on success, FALSE otherwise.
Locks a table