xPDO.getAlias
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
$185 per month—let's make that $500!
Learn morexPDO::getAlias¶
Returns the alias of a class: the last segment of its namespace, without the namespace prefix. For example, the alias of MODX\Revolution\modResource is modResource.
Syntax¶
string|null getAlias (string $className)
Example¶
$alias = $xpdo->getAlias('MODX\\Revolution\\modResource');
// 'modResource'
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
$185 per month—let's make that $500!
Learn more










