modResource.setProcessed
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.setProcessed¶
Writes the _processed flag directly, casting the value to boolean.
The only call in core is modRequest setting it to true after it restores a Resource from the site cache. That keeps process() on the cached _content instead of a fresh parse.
Syntax¶
void setProcessed ($processed)
-
$processed(boolean) value stored in the flag
Example¶
$resource = $modx->getObject('modResource', array('id' => 5));
$resource->_content = 'foobar';
$resource->setProcessed(true);
$resource->process();
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










