Development

/branches/1.2/lib/debug/sfWebDebugPanelCache.class.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/debug/sfWebDebugPanelCache.class.php

Revision 12982, 1.0 kB (checked in by hartym, 6 years ago)

[1.2] added alt attributes to web debug toolbar icons to be xhtml valid

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