Table of Contents

getPrefix

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Database Class JDatabase Method getPrefix Reference getPrefix() Never Work in Progress

Returns the current database table prefix code. By default this will be ‘mos_’ but this may have been overridden during Joomla! installation.

Syntax

string getPrefix ()

Examples

Example

$database =& JFactory::getDBO();
echo $database->getPrefix();

might produce:

Result

jos_