Skip to content

Instantly share code, notes, and snippets.

@silentworks
Last active December 14, 2015 08:38
Show Gist options
  • Save silentworks/5058812 to your computer and use it in GitHub Desktop.
Save silentworks/5058812 to your computer and use it in GitHub Desktop.
This is how you could return your processor with specific system settings.
<?php
class MyGetListProcessor extends modObjectGetProcessor {
public $classKey = 'className';
public function process() {
$data = array();
$settings = array(
'emailsender' => $this->modx->getOption('emailsender')
);
$data['total'] = count($settings);
return $this->outputArray($settings, $data['total']);;
}
}
return 'MyGetListProcessor';
@silentworks
Copy link
Author

Weird that modObjectGetProcessor didnt work since it extends modProcessor. Maybe it was missing a required variable. Good to see you got this working anyway and thanks for posting back your working example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment