Jump to main content Jump to doc navigation

xPDO::getTableName

Gets the actual run-time table name from a specified class name.

Syntax

API Docs: https://api.modx.com/revolution/2.2/db_core_xpdo_xpdo.class.html#\xPDO::getTableName()

string getTableName (string $className, [boolean $includeDb = false])

Example

Output the table name for the Box object with a table name of "boxes":

echo $xpdo->getTableName('Box');

See Also