Skip to content

Instantly share code, notes, and snippets.

@splittingred
Created June 13, 2011 15:07
Show Gist options
  • Save splittingred/1022942 to your computer and use it in GitHub Desktop.
Save splittingred/1022942 to your computer and use it in GitHub Desktop.
<?php
abstract class BatcherManagerController extends modManagerController {
public function initialize() {
$this->batcher = new Batcher($this->modx);
$this->addCss($this->batcher->config['cssUrl'].'mgr.css');
$this->addJavascript($this->batcher->config['jsUrl'].'batcher.js');
$this->addHtml('<script type="text/javascript">
Ext.onReady(function() {
Batcher.config = '.$this->modx->toJSON($this->batcher->config).';
Batcher.config.connector_url = "'.$this->batcher->config['connectorUrl'].'";
});
</script>');
}
public function getLanguageTopics() {
return array('batcher:default');
}
public function checkPermissions() { return true;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment