modResource.getProcessed
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 moremodResource.getProcessed¶
Reports the state of the _processed flag. process() and parseContent() set it once they have parsed the content.
modRequest also sets it to true on a Resource restored from the site cache. That keeps process() from parsing the cached _content again. modCacheManager::generateResource() reads the same flag before it writes a Resource to cache.
Syntax¶
boolean getProcessed ()
Example¶
$resource = $modx->getObject('modResource', array('id' => 5));
if (!$resource->getProcessed()) {
$resource->prepare();
}
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










