modX.executeProcessor

Skip to end of metadata
Go to start of metadata


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: http://api.modxcms.com/modx/modX.html#executeProcessor

mixed executeProcessor (array $options)

Example

Execute the Context getList processor:

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

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.