xPDOGenerator.getTableName
Last updated not available | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOGenerator::getTableName¶
Returns the database table name for a class name, applying a table prefix. When $prefixRequired is true, the prefix must be present for a name to be returned.
Syntax¶
string|null getTableName (string $string, [string $prefix = ''], [boolean $prefixRequired = false])
Example¶
$generator = $manager->getGenerator();
$table = $generator->getTableName('MyVendor\\MyPackage\\MyModel', 'my_');
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










