Created
June 13, 2011 15:07
-
-
Save splittingred/1022942 to your computer and use it in GitHub Desktop.
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 | |
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