JDatabaseQueryMySQL::lock: Difference between revisions
From Joomla! Documentation
m →See also: moving preparation |
m clean up |
||
| Line 4: | Line 4: | ||
Method to lock the database table for writing. | Method to lock the database table for writing. | ||
{{Description:JDatabaseQueryMySQL::lock}} | {{subst:Description:JDatabaseQueryMySQL::lock}} | ||
<source lang="php"> | <source lang="php"> | ||
public function lock ( | public function lock ( | ||
| Line 40: | 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]] | ||
{{SeeAlso:JDatabaseQueryMySQL::lock}} | {{subst:SeeAlso:JDatabaseQueryMySQL::lock}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 15:10, 24 March 2017
JDatabaseQueryMySQL::lock
Description
Method to lock the database table for writing.
{{subst:Description:JDatabaseQueryMySQL::lock}}
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
{{subst:SeeAlso:JDatabaseQueryMySQL::lock}}
User contributed notes
<CodeExamplesForm />