sfWebDebugPanelCache.class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * sfWebDebugPanelCache adds a panel to the web debug toolbar with a link to ignore the cache
  11. * on the next request.
  12. *
  13. * @package symfony
  14. * @subpackage debug
  15. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  16. * @version SVN: $Id: sfWebDebugPanelCache.class.php 12982 2008-11-13 17:25:10Z hartym $
  17. */
  18. class sfWebDebugPanelCache extends sfWebDebugPanel
  19. {
  20. public function getTitle()
  21. {
  22. return '<img src="'.$this->webDebug->getOption('image_root_path').'/reload.png" alt="Reload" />';
  23. }
  24. public function getTitleUrl()
  25. {
  26. return $_SERVER['PHP_SELF'].((strpos($_SERVER['PHP_SELF'], '_sf_ignore_cache') === false) ? '?_sf_ignore_cache=1' : '');
  27. }
  28. public function getPanelTitle()
  29. {
  30. return 'reload and ignore cache';
  31. }
  32. public function getPanelContent()
  33. {
  34. }
  35. }