modResource.setProcessed
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
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¶
Прямо записывает флаг _processed, приводя значение к логическому.
Единственный вызов в ядре — modRequest ставит его в true после восстановления ресурса из кэша сайта. Так process() работает с закэшированным _content вместо нового парсинга.
Синтаксис¶
void setProcessed ($processed)
-
$processed(boolean) значение, сохраняемое во флаге
Пример¶
$resource = $modx->getObject('modResource', array('id' => 5));
$resource->_content = 'foobar';
$resource->setProcessed(true);
$resource->process();
Смотрите также¶
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










