Jump to main content Jump to doc navigation

modX::executeProcessor

This method is removed in 2.1, and replaced by $modX->runProcessor

Executes a specific processor. The only argument is an array, which can take the following values:

  • action - The action to take, similar to connector handling.
  • processors\_path - If specified, will override the default MODX processors path.
  • location - A prefix to load processor files from, will prepend to the action parameter.

Syntax

API Doc: modX::runProcessor()

mixed executeProcessor (array $options)

Example

Execute the Context getList processor:

$modx->executeProcessor(array(
    'location' => 'context',
    'action' => 'getList',
));

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

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • Chris Fickling
  • CrewMark
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more