profiler.class.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * xBug
  4. *
  5. * Copyright 2010 by Shaun McCormick <shaun+xbug@modx.com>
  6. *
  7. * xBug is free software; you can redistribute it and/or modify it under the
  8. * terms of the GNU General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option) any later
  10. * version.
  11. *
  12. * xBug is distributed in the hope that it will be useful, but WITHOUT ANY
  13. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  14. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * xBug; if not, write to the Free Software Foundation, Inc., 59 Temple
  18. * Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. * @package xbug
  21. */
  22. /**
  23. * Loads the home page.
  24. *
  25. * @package xbug
  26. * @subpackage controllers
  27. */
  28. if (!class_exists('xBugManagerController')) {
  29. require_once dirname(dirname(__FILE__)).'/index.class.php';
  30. }
  31. class xBugProfilerManagerController extends xBugManagerController {
  32. public function process(array $scriptProperties = array()) {
  33. }
  34. public function getPageTitle() { return $this->modx->lexicon('xbug.profiler'); }
  35. public function loadCustomCssJs() {
  36. $this->addCss($this->xbug->config['cssUrl'].'mgr.css');
  37. $this->addLastJavascript($this->xbug->config['jsUrl'].'mgr/utils/GroupSummary.js');
  38. $this->addLastJavascript($this->xbug->config['jsUrl'].'mgr/widgets/profiler.panel.js');
  39. $this->addLastJavascript($this->xbug->config['jsUrl'].'mgr/sections/profiler.js');
  40. }
  41. public function getTemplateFile() { return $this->xbug->config['templatesPath'].'profiler.tpl'; }
  42. }