/** * Method to lock the database table for writing. * * @return boolean True on success. * * @since 11.1 * @throws JDatabaseException */ protected function _lock() { $this->_db->lockTable($this->_tbl); $this->_locked = true; return true; }
/** * Locks a table in the database. * * @param string $tableName The name of the table to unlock. * * @return self Returns this object to support chaining. * * @throws \RuntimeException */ public function lockTable($tableName) { $this->_db->lockTable($tableName); return $this; }