JDatabase::replacePrefix
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JDatabase::replacePrefix[edit]
Description[edit]
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[edit]
JDatabase::replacePrefix source code on BitBucket
Class JDatabase
Subpackage Database
- Other versions of JDatabase::replacePrefix
User contributed notes[edit]
Code Examples[edit]