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.

Joomla 11.1 JDatabase::replacePrefix


This function replaces a string identifier with the string held is the class variable.

protected function replacePrefix (
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 Joomla 11.1

See also

  • Joomla 11.1 JDatabase::replacePrefix source code on BitBucket
  • Joomla 11.1 Class JDatabase
  • Joomla 11.1 Subpackage Database
  • Other versions of JDatabase::replacePrefix

User contributed notes

Code Examples