/app/Plugin/DebugKit/Lib/DebugPanel.php

https://github.com/decapattack/fishbox · PHP · 84 lines · 14 code · 9 blank · 61 comment · 0 complexity · 20892b1abe12f715e0adbde44f986475 MD5 · raw file

  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  10. * @link http://cakephp.org CakePHP(tm) Project
  11. * @since DebugKit 0.1
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. /**
  15. * Base class for debug panels.
  16. *
  17. * @since DebugKit 0.1
  18. */
  19. class DebugPanel {
  20. /**
  21. * Defines which plugin this panel is from so the element can be located.
  22. *
  23. * @var string
  24. */
  25. public $plugin = 'DebugKit';
  26. /**
  27. * Defines the title for displaying on the toolbar. If null, the class name will be used.
  28. * Overriding this allows you to define a custom name in the toolbar.
  29. *
  30. * @var string
  31. */
  32. public $title = null;
  33. /**
  34. * Panel's css files
  35. *
  36. * @var array
  37. */
  38. public $css = array();
  39. /**
  40. * Panel's javascript files
  41. *
  42. * @var array
  43. */
  44. public $javascript = array();
  45. /**
  46. * Provide a custom element name for this panel. If null, the underscored version of the class
  47. * name will be used.
  48. *
  49. * @var string
  50. */
  51. public $elementName = null;
  52. /**
  53. * Empty constructor
  54. */
  55. public function __construct() {
  56. }
  57. /**
  58. * startup the panel
  59. *
  60. * Pull information from the controller / request
  61. *
  62. * @param \Controller|object $controller Controller reference.
  63. * @return void
  64. */
  65. public function startup(Controller $controller) {
  66. }
  67. /**
  68. * Prepare output vars before Controller Rendering.
  69. *
  70. * @param \Controller|object $controller Controller reference.
  71. * @return void
  72. */
  73. public function beforeRender(Controller $controller) {
  74. }
  75. }