gadgetto
2/28/2013 - 6:10 PM

This is how you could return your processor with specific system settings.

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';