xPDO.getTableName
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
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');