modResource.getResourceTypeName
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 moremodResource.getResourceTypeName¶
Returns a lexicon entry for the Resource type. The base implementation only special-cases modDocument, which is translated by the document key; every other class is looked up by its own class name.
Derivatives that need a different label override the method: modWebLink, modSymLink and modStaticResource. A class with no override and no lexicon entry comes back as its raw class name, because modLexicon returns a missing key unchanged.
Syntax¶
string getResourceTypeName ()
Example¶
$document = $modx->getObject('modDocument', array('id' => 5));
echo $document->getResourceTypeName();
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










