Last active
December 14, 2015 08:38
-
-
Save silentworks/5058812 to your computer and use it in GitHub Desktop.
This is how you could return your processor with specific system settings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.