API17:JDatabase::replacePrefix
From Joomla! Documentation
JDatabase::replacePrefix
Description
This function replaces a string identifier with the string held is the class variable.
protected function replacePrefix (
$sql
$prefix='#__'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $sql | string | The SQL statement to prepare. | |
| $prefix | string | '#__' | The common table prefix. |
- Returns string The processed SQL statement.
- Defined on line 1022 of libraries/joomla/database/database.php
- Since

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