Thanks Bob, as always. It's good to know how things work behind the scenes so we can document it for other devs... the docs on MODExt are pretty slim on this.
So it appears that somewhere, the "processors" path is hardcoded? Is that true? E.g. in "Batcher", I see this:
url: Batcher.config.connector_url
,baseParams: {
action: 'mgr/resource/getList'
,thread: config.thread
}
So I need to know that it's referring to the
core/components/batcher/processors/mgr/resource/getlist.php file, and I would need to know how that file is passed data (I would have expected it to be posted -- it is Ajax afterall), but instead I see it uses the $scriptProperties array, suggesting an intermediary:
$start = $modx->getOption('start',$scriptProperties,0);
And then finally, I need to know what format the output must be in -- Ext JS from what I've read so far expects a JSON object with node in it for the count of all object and another node flagged to be the container for the array of records. Instead I see this:
$count = $modx->getCount('modResource',$c);
// ...
return $this->outputArray($list,$count);
That itself raises some questions -- "$this" -- what object/class are we in? Do we need a count if it's just a single record?