API17

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.

Joomla 11.1 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 Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]