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: http://api.modxcms.com/xpdo/xPDO.html#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