JDatabaseQueryMySQL::lock: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Method to lock the database table for writing. | Method to lock the database table for writing. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 38: | Line 38: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | ||
* [[API17:JDatabaseQueryMySQL::lock|Other versions of JDatabaseQueryMySQL::lock]] | * [[API17:JDatabaseQueryMySQL::lock|Other versions of JDatabaseQueryMySQL::lock]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseQueryMySQL::lock | category=JDatabaseQueryMySQL::lock | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:44, 25 March 2017
JDatabaseQueryMySQL::lock
Description
Method to lock the database table for writing.
public function lock (
$table_name
&$db
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $table_name | |||
| &$db |
- Returns boolean True on success.
- Defined on line 490 of libraries/joomla/database/database/mysqlquery.php
- Since

See also
JDatabaseQueryMySQL::lock source code on BitBucket
Class JDatabaseQueryMySQL
Subpackage Database- Other versions of JDatabaseQueryMySQL::lock
User contributed notes
Code Examples