|
Revision 12982, 0.9 kB
(checked in by hartym, 5 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 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
class sfWebDebugPanelMemory extends sfWebDebugPanel |
|---|
| 20 |
{ |
|---|
| 21 |
public function getTitle() |
|---|
| 22 |
{ |
|---|
| 23 |
if (function_exists('memory_get_usage')) |
|---|
| 24 |
{ |
|---|
| 25 |
$totalMemory = sprintf('%.1f', (memory_get_usage() / 1024)); |
|---|
| 26 |
|
|---|
| 27 |
return '<img src="'.$this->webDebug->getOption('image_root_path').'/memory.png" alt="Memory" /> '.$totalMemory.' KB'; |
|---|
| 28 |
} |
|---|
| 29 |
} |
|---|
| 30 |
|
|---|
| 31 |
public function getPanelTitle() |
|---|
| 32 |
{ |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
public function getPanelContent() |
|---|
| 36 |
{ |
|---|
| 37 |
} |
|---|
| 38 |
} |
|---|
| 39 |
|
|---|